I\'m in the process of converting a legacy PHP application to Symfony 2. The application data is not very consistent at the moment, so I would like to avoid creating foreign
I had to go through the same process recently and fortunately there is an easy solution, just add nullable=true to the column's annotation.
nullable=true
This will work as long as the existing data is valid, in my case I had to change 0's to NULL's and change keys that didn't exist anymore to NULL.