소스 검색

fix variable name reference

Thomas 14 년 전
부모
커밋
5779ffefbe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Admin/Admin.php

+ 1 - 1
Admin/Admin.php

@@ -347,7 +347,7 @@ abstract class Admin extends ContainerAware
 
 
         $admin = $pool->getAdminByClass($fieldDescription->getTargetEntity());
         $admin = $pool->getAdminByClass($fieldDescription->getTargetEntity());
         if (!$admin) {
         if (!$admin) {
-            throw new \RuntimeException(sprintf('You must define an Admin class for the `%s` field', $name));
+            throw new \RuntimeException(sprintf('You must define an Admin class for the `%s` field', $fieldDescription->getFieldName()));
         }
         }
 
 
         $fieldDescription->setAssociationAdmin($admin);
         $fieldDescription->setAssociationAdmin($admin);