symfony/symfony — pull request #2500 by RapotOR (2011-10-27 16:33:00+00:00)
Title: Patch 1

If the *choices* property is equal to array(), the EntityChoiceList don't use empty choices and try query_builder or findAll.

We should use **false** as default instead of **array()** to be able to have an empty list if a custom filter give an empty result. With **array()** as default, the EntityType populates choices with findAll even if our result was empty; and it is not expected.