My Problem: I cannot get an associated Entity to save using the entity field type or collection field type.
My Database Relations
Database Structure Description:
- I have a 'Usage' entity that has many 'telephone numbers' attached to it.
- Each 'telephone number' has one and only one region.
What I want to Achieve
On my edit 'Usage' form I want to display a dropdown box for each 'telephone number' that the 'Usage' already has attached to it.
Each dropdown box will list all the telephone numbers for that region, allowing the user to select a new telephone number
How I want to display my Usage Form
My Controller
- Usage Controller line 146 - 203
My Entities
Form Type
Twig Template
- Usage Form Page line 80 -128
ViewTransformer
My Problem: When I submit the form, nothing happens, the new telephone number I selected is not persisted.