ZF-8203: Zend_Form::isValid() kills array of "belongsTo"


I have created a form with several "belongsTo" form elements. When I load the values on POST like this:

if($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())
    $values = $form->getValues();

$values now differs from $this->getReuquest()->getPost() and could not populate its data to the form!


A form I created to test this issue.

Data-Array to fill the form.

Does this fix your Issue?

Fixed in [ZF-9348]

Will work on belongsTo after finishing elementsBelongTo.

This time this is fixed for real in parent ZF-9607