doctrine/DoctrineORMModule — pull request #124 by bakura10 (2012-09-22 08:47:24+00:00)
Title: Select form : updated for latest master

A change was recently introduced in Zend Select element in master here : https://github.com/zendframework/zf2/blob/develop/library/Zend/Form/Element/Select.php#L80

Basically, when you set options, it automatically updates the haystack of the InArray validator, and hence the custom validator based on ObjectExists is not needed anymore.

I could not let it for backward compatibility too, because of this line : https://github.com/zendframework/zf2/blob/develop/library/Zend/Form/Element/Select.php#L80

As it would assume that the validator (in our case before this PR, an ObjectExists), has an setHaystack function defined, which is not the case.

However, the current approach is, I think, better, so this is a good change :).