mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #8732] [GH-8723] Remove use of nullability to automatically detect nullable status #11147
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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