-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
For example we have two entities one Car and one Person, when we modify PersonType like below:
$builder
->add('email')
->add('cars','collection',array(
'type' => new CarType(),
'allow_add' => true,
'allow_delete' => true,
'by_reference' => false,
))
->add('submit','submit')
and have following validation rules for Car entity:
Mtm\AppBundle\Entity\Car:
properties:
file:
- File:
maxSize: 100k
mimeTypes: [application/pdf, application/x-pdf]
mimeTypesMessage: Please upload a valid PDF
Validation rules doesn't apply on form, it just makes html5 validation on it, not server side validation.
Any idea how should I do that?
Metadata
Metadata
Assignees
Labels
No labels