[PR #10155] feat: allow STI child entities to have non-nullable relationships #12136

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

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

State: closed
Merged: No


Currently, child entities cannot have relationships marked as non-nullable because SchemaTool generates the relationship join column as NOT NULL.

It has to be marked as nullable, the same as is done for non-nullable columns that are present only in child entity.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10155 **State:** closed **Merged:** No --- Currently, child entities cannot have relationships marked as non-nullable because SchemaTool generates the relationship join column as `NOT NULL`. It has to be marked as nullable, the same as is done for non-nullable columns that are present only in child entity.
admin added the pull-request label 2026-01-22 16:13:01 +01:00
admin closed this issue 2026-01-22 16:13:02 +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#12136