[PR #8732] [GH-8723] Remove use of nullability to automatically detect nullable status #11147

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

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

State: closed
Merged: Yes


The new typed properties support has a flaw around the the concept of nullable. Setting a type in the entity to be or not be nullable does not necessarily mean the databsae column has to be the same. They can differ from each other.

As such it is better to remove the the use of allowsNull() as the default value for a column's or joincolumn's nullable flag.

This supersedes #8726

Fixes #8723

**Original Pull Request:** https://github.com/doctrine/orm/pull/8732 **State:** closed **Merged:** Yes --- The new typed properties support has a flaw around the the concept of nullable. Setting a type in the entity to be or not be nullable does not necessarily mean the databsae column has to be the same. They can differ from each other. As such it is better to remove the the use of `allowsNull()` as the default value for a column's or joincolumn's nullable flag. This supersedes #8726 Fixes #8723
admin added the pull-request label 2026-01-22 16:09:52 +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#11147