Skip to content


DDC-820: Nullable associations combined with a column definition generates a notice #5339

doctrinebot opened this Issue · 2 comments

1 participant


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.


Comment created by @beberlei:

This is already fixed in master, will be in RC1.


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-RC1 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.