Pārlūkot izejas kodu

fix variable name reference

Thomas 14 gadi atpakaļ
vecāks
revīzija
5779ffefbe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);