ZF-9327: Validation dont works correctly with fields thar use belongsTo as array value


So.. Supose my form have 2 fields, name and login: //Validate: belongsTo is a string $this->addElement('text', 'name', array( 'required' => true, 'label' => 'Nome', 'belongsTo' => 'person' )); //Don't Validate: belongsTo is an array $this->addElement('text', 'login', array( 'required' => true, 'label' => 'Email', 'belongsTo' => 'person[user]' ));

Im using below to validate: $data = $this->getRequest()->getParam('person') $form->isValid($data);


Reopened because suggested fix is not reviewed and committed yet.

Duplicates now parent ZF-9607 which has a Patch and Unit Test attached.