Is there a way in Symfony2 to add an optional nested form while using cascade validation? In other words, say I have a user form with a nested address form (->add('adresse', new AddressType(), array('required' => false))
). This address is not required BUT must be validated in case the user specify it ('cascade_validation' => true
).
Aucun commentaire:
Enregistrer un commentaire