zendframework/zf2 — pull request #6115 by dave-newson (2014-04-09 04:31:53+00:00)
Title: Elements and Fieldsets within a Collection are not validated

Currently member items of a Collection (Fieldset or Element) are never validated when isValid() is called on a form.

This PR fixes \Zend\Form\Form to instantiate a CollectionInputFilter, causing Fieldsets to be be validated.
This PR does NOT fix the issue of Elements under a Collection not being validated, but I have added a skipped test which would otherwise fail, for this case.
This PR also modifies the CollectionInputFilter to not collate the error messages on isValid, but instead when getMessages is called. This is more akin to the actions of BaseInputFilter.