mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-820: Nullable associations combined with a column definition generates a notice #1013
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?
Originally created by @doctrinebot on GitHub (Sep 29, 2010).
Jira issue originally created by user hasbridge:
When an entity has an optional association on a given field and also a column definition on that field, loading that entity generates a notice in UnitOfWork.php on line 1884. Other than the notice, the code works fine. This is the line:
$joinColumnValue = $data[$srcColumn];Suggested fix:
$joinColumnValue = isset($data[$srcColumn]) ? $data[$srcColumn] : null;I have attached a test case which reproduces the issue.
@doctrinebot commented on GitHub (Sep 29, 2010):
Comment created by @beberlei:
This is already fixed in master, will be in RC1.
@doctrinebot commented on GitHub (Sep 29, 2010):
Issue was closed with resolution "Fixed"