chateaux
I am using Formidable as an alternative to ZF3 forms and am liking it for its simplicity. However, I am wondering how to use it in more complicated forms? For instance, if I have an Entity: Customer that has an option to select multiple Products, how do I go about doing this with Formidable? In ZF3 I would create something like this: $this->add( [ 'type' => 'DoctrineModule\Form\Element\ObjectSelect', 'name' => 'products', 'options' => [ 'object_manager' => $this->objectManager, 'target_class' => 'Domain\User\Products', ], 'attributes' => [ 'multiple' => true, ] ] ); When creating my form, it would have a multi-select option with all the products in it. I am struggling to work out how to do this with Formidable? Any suggestions would be appreciated!