diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php index e0ac9e9e19fe5..0405430eac55c 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php @@ -127,7 +127,7 @@ protected function load() { parent::load(); - if ($this->choices) { + if ($this->choices !== false) { $entities = $this->choices; } else if ($qb = $this->queryBuilder) { $entities = $qb->getQuery()->execute(); diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php index 90623aac472e6..7a0d3854319af 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php @@ -48,7 +48,7 @@ public function getDefaultOptions(array $options) 'class' => null, 'property' => null, 'query_builder' => null, - 'choices' => array(), + 'choices' => false, ); $options = array_replace($defaultOptions, $options);