zendframework/zf2 — pull request #1953 by bakura10 (2012-07-23 10:16:59+00:00)
Title: Allow elements to be removed in collection

This PR adds a new feature for Collection element in Forms : if the allow_remove option is set to true, the form will still validate even if there are less elements in the collection than initially defined.

This is useful especially if we provide a specific number of elements, and let the user remove them using JavaScript.

It also allows the Collection element to use its own hydrator to extract/hydrate element, instead of always relying on the hydrator of the target element.