I am using phpunit with Symfony2.
I decided to use sqlite for my tests.
The problem I am facing is that foreign key constraints are ignored.
I know that I need to execute the following query in order to use foreign keys: PRAGMA foreign_keys = ON ).
My question is: is there a way to always use foreign keys when creating a database schema using sqlite?
Thanks!
Brice source share