Thomas před 14 roky
rodič
revize
7b9b90809a

+ 1 - 1
src/Symfony/Component/Form/EntityChoiceField.php

@@ -325,7 +325,7 @@ class EntityChoiceField extends ChoiceField
     protected function getReflProperty($property)
     {
         if (!isset($this->reflProperties[$property])) {
-            $this->reflProperties[$property] = new \ReflectionProperty($this->getOption('class'), $field);
+            $this->reflProperties[$property] = new \ReflectionProperty($this->getOption('class'), $property);
             $this->reflProperties[$property]->setAccessible(true);
         }