Explorar o código

fix variable name reference

Thomas %!s(int64=14) %!d(string=hai) anos
pai
achega
5779ffefbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());
         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);