[PR #9762] Do not call AbstractSchemaManager::getDatabasePlatform() #11864

Closed
opened 2026-01-22 16:12:09 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/9762

State: closed
Merged: Yes


AbstractSchemaManager::getDatabasePlatform() was deprecated in https://github.com/doctrine/dbal/pull/5387.

The reason why the foreign keys are used conditionally is really unclear. The conditional logic was originally introduced in 556f8699ee as a replacement for try/catch. FWIW, all supported platforms support foreign keys, although the SQLite platform declares that it doesn't.

**Original Pull Request:** https://github.com/doctrine/orm/pull/9762 **State:** closed **Merged:** Yes --- `AbstractSchemaManager::getDatabasePlatform()` was deprecated in https://github.com/doctrine/dbal/pull/5387. The reason why the foreign keys are used conditionally is really unclear. The conditional logic was originally introduced in https://github.com/doctrine/orm/commit/556f8699ee5e622f0d2375b209cd2e59b3390b55 as a replacement for `try`/`catch`. FWIW, all supported platforms support foreign keys, although the SQLite platform declares that it doesn't.
admin added the pull-request label 2026-01-22 16:12:09 +01:00
admin closed this issue 2026-01-22 16:12:10 +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#11864