When I want to add a new contact from company no default value was selected for company select in my embed form contact.
If I selected a company I got an error 500 on submit in ajax with this message : Invalid argument, object or null required
If I delete the company field in my contact form I have this error when I submit :
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'id_company' cannot be null
I have read a lot of pots and article through the net without found a working issue. :(
What I did wrong ???
If someone could explain me that would be great ! Thanks to read my post ;)
I can not create a contact from my company service.
symfony : 2.7 sonataAdmin : 2.4
my Entity Company (Parent)
my Entity Contact (Children)
my class Admin Company (Parent)
my class Admin Contact (Children)
My services
When I want to add a new contact from company no default value was selected for company select in my embed form contact.
If I selected a company I got an error 500 on submit in ajax with this message : Invalid argument, object or null required
If I delete the company field in my contact form I have this error when I submit : SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'id_company' cannot be null
I have read a lot of pots and article through the net without found a working issue. :(
What I did wrong ???
If someone could explain me that would be great ! Thanks to read my post ;)