浏览代码

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);