Hi, I have a simple table that has three foreign keys from which all are optional in saving because only one of them matters at the end (it isn't any trouble either if all are empty).
Symfony beautifully generates my form and shows foreign relations in select fields, because of "notnull: false" in my schema.yml, empty value fields are added too.
Unfortunately, I receive an mysql error because of empty strings entered in the INSERT statement. Replacing those empty strings with NULL, it works (in phpmyadmin)
- so my question is, how I can I force the form validator/doctrine save method to use NULL values instead of empty strings?
Does anyone know how to do this?
Thanks in advance.