Thomas 14 лет назад
Родитель
Сommit
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);
         }