I have a strange issue with one of my entities.
my Vehicle entity has the following db table fields:
- orders (PK)
- licenseplate (PK)
- make
- model
- variant
On the form the only field visible is the licenseplate.
After the field there is a button where the visitor fetches the make/model/variant data from a ajax call to a AjaxController that adds the data to the db. (there is a $session 'orderId' that sets the 'orders' field).
I need to be absolutely certain that the visitor has fetched the make/model/variant and that the visitor cannot change the make/model/variant data.
How can I check on form submit that the vehicle table is filled out? Can I do a Doctrine check and set the form to 'invalid'?
Thank you for your time.
Regards, Lars Hansen