diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php index 0ef405c23545e..20613c9699dc7 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php @@ -63,15 +63,6 @@ class EntityChoiceList extends ArrayChoiceList */ private $identifier = array(); - /** - * A cache for \ReflectionProperty instances for the underlying class - * - * This property should only be accessed through getReflProperty(). - * - * @var array - */ - private $reflProperties = array(); - /** * A cache for the UnitOfWork instance of Doctrine * @@ -300,23 +291,6 @@ public function getEntity($key) } } - /** - * Returns the \ReflectionProperty instance for a property of the - * underlying class - * - * @param string $property The name of the property - * @return \ReflectionProperty The reflection instance - */ - private function getReflProperty($property) - { - if (!isset($this->reflProperties[$property])) { - $this->reflProperties[$property] = new \ReflectionProperty($this->class, $property); - $this->reflProperties[$property]->setAccessible(true); - } - - return $this->reflProperties[$property]; - } - /** * Returns the values of the identifier fields of an entity *