Explorar o código

fix variable name

Thomas %!s(int64=14) %!d(string=hai) anos
pai
achega
7b9b90809a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
     protected function getReflProperty($property)
     {
     {
         if (!isset($this->reflProperties[$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);
             $this->reflProperties[$property]->setAccessible(true);
         }
         }