mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10981] Take ReflectionType::allowsNull into account
#12740
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/10981
State: closed
Merged: No
This reintroduces the behavior removed in #8732 due to #8723 for 3.0
When you have a column with a typed property, then the null status of the property determines if the column's
nullablemapping.This is only done for fields and not for associations, because often association join columns need to be nullable to be updated later after the insert due to extra update and ordering reasons.
For 2.x, we will make this an opt-in behavior in the
DefaultTypedFieldMapperand emit a deprecation if user is not opted-in.Follow Up:
computeInsertExecutionOrderand other places mentioned there in a comment.