zendframework/zf2 — pull request #4077 by sjuvonen (2013-03-19 19:18:09+00:00)
Title: Fix Collection form element replacing bound objects with dummies upon form validation

Currently the Zend\Form\Element\Collection will discard bound objects and replace them with clones of its dummy template when the form is validated. This will result in loss of all properties that do not have a field in the Collection's target element (fieldset).

Also the returned object instances have to be the same that were passed to the form originally or it will cause corruption.