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

Closed
doctrinebot opened this Issue Sep 29, 2010 · 2 comments

1 participant

@doctrinebot

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

Comment created by @beberlei:

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

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-RC1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment