Invalid SQlite schema output #6517

Closed
opened 2026-01-22 15:34:25 +01:00 by admin · 0 comments
Owner

Originally created by @ilicmsreten on GitHub (Aug 12, 2020).

After PR https://github.com/doctrine/orm/pull/7842 v2.6.5 SchemaTool::getCreateSchemaSql ignore FK's for SQlite, because SqlitePlatform::supportsForeignKeyConstraints returns false.

In the test environment, I'm using SQLite, and this code sample to force FK in SQlite.

Originally created by @ilicmsreten on GitHub (Aug 12, 2020). After PR https://github.com/doctrine/orm/pull/7842 v2.6.5 [`SchemaTool::getCreateSchemaSql`](https://github.com/doctrine/orm/blob/2.7/lib/Doctrine/ORM/Tools/SchemaTool.php#L112) ignore FK's for `SQlite`, because `SqlitePlatform::supportsForeignKeyConstraints` returns `false`. In the test environment, I'm using `SQLite`, and this [code sample](https://tomnewby.net/posts/enable-foreign-keys-in-sqlite-symfony-tests/) to force `FK` in `SQlite`.
admin closed this issue 2026-01-22 15:34:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6517