doctrine2 - How to set doctrine associated data into Zend Form? -
how set associated data zend form in zf2?
i getting error :
zend\form\view\helper\formselect not allow specifying multiple selected values when element not have multiple attribute set boolean true
after using below code.
$data = entity object[ 'name' => 'test' 'email' => 'test@test.com', 'type' => object[ 'id'=>1, 'type'=>'admin' ] ]
when used set data
$form->setdata($data->toarray())
it gives me above error.
i using zf2, doctrine2 , mysql
please me fix this.
Comments
Post a Comment