Jul 16, 2015
0
Level 2
Sqlite with Laravel ignoring cascade deletions
I'd like to use sqlite for development and testing but it seems that sqllite with laravel ignores foreign key cascades. It looks like from sqlite that Laravel should be sending "PRAGMA foreign_keys = ON;" with each connection to enable them.
Is there a way to do this without hacking on the laravel source today? Perhaps just making an environment level configuration?
Please or to participate in this conversation.