Thomas преди 14 години
родител
ревизия
7b9b90809a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Component/Form/EntityChoiceField.php

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