orm icon indicating copy to clipboard operation
orm copied to clipboard

feat: allow STI child entities to have non-nullable relationships

Open simPod opened this issue 3 years ago • 4 comments

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.

simPod avatar Oct 19 '22 12:10 simPod

Do you mean

Currently, child entities cannot have relationships marked as nullable…?

mpdude avatar Jan 25 '23 13:01 mpdude

as non-nullable as stated in the title.

https://github.com/doctrine/orm/pull/10155/files#diff-fe519274c2d9ecab59f442c05f190586e7320f74719505288502bdb0ca56bc9aR15

simPod avatar Jan 25 '23 16:01 simPod