fix variable name

This commit is contained in:
Thomas 2011-02-01 22:30:51 +01:00 committed by Fabien Potencier
parent 1893e4e250
commit 7b9b90809a

View File

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