Issues

ZF2-518: Binding objects to collections of the form

Description


$this->add(
    array(
        'type'    => 'Zend\Form\Element\Collection',
        'name'    => 'addresses',
        'options' => array(
            'count'                  => 2,
            'should_create_template' => true,
            'allow_add'              => true,
            'target_element'         => array (
                'type' => 'Admin\Form\AddressFieldset',
            ),
        ),
    )
);

How to bind the values to the elements of the fieldset when using the collections to the fieldset address[0]['street1'], address[0]['street2'] .... kindly Let me know how can be this achieved

Comments

Code tags added.

I hope its a bug

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2553