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
Basically you can't prevent the sql commands from being generated. At least not without diving into the Doctrine code.
However, you don't need to actually apply the constraints to your database. D2 will work just fine without them.