sonata-project/SonataAdminBundle — pull request #682 by pulse00 (2012-04-13 11:37:45+00:00)
Title: Fixed choice_list for ModelType

This PR fixes a fatal error in the `getDefaultOptions()` method of the `ModelType`. The choice_list closure returned only a `ModelChoiceList` when the `$previousValue` was null, but this is an instance of a `ChoiceListInterface` now - with an empty `choices` array.