Answer the question
In order to leave comments, you need to log in
How to pass selected checkboxes to DoctrineModule\Form\Element\ObjectMultiCheckbox?
Can you please tell me how to pass options for selected checkboxes to the checked view?
Used by Zend Framework 2, doctrine 2.4, many-to-many
Element adding code:
$this->add(array(
'name' => 'workerId',
'type' => 'DoctrineModule\Form\Element\ObjectSelect',
'options' => array(
'label' => 'TESTE',
'object_manager' => $this->getObjectManager(),
'target_class' => 'Backend\Entity\Worker',
'property' => 'name'
)
));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question