DDC-1548: One to one entity badly populated #2182

Closed
doctrinebot opened this Issue Dec 19, 2011 · 5 comments

Projects

None yet

2 participants

@doctrinebot
Collaborator

Jira issue originally created by user goetas:

One to one entity over populated

@doctrinebot
Collaborator

Comment created by goetas:

I have created a test.

the bug may be in \Doctrine\ORM\Internal\Hydration\AbstractHydrator at line 246.

i think...

remove
if ( ! isset($rowData[$dqlAlias][$cache[$key]['fieldName']]) || $value !== null) {

and replace with :

if ( ! isset($rowData[$dqlAlias][$cache[$key]['fieldName']]) && $value !== null) {

this will fix the bug

@doctrinebot
Collaborator

Comment created by @guilhermeblanco:

Fixed since this commit: 68663fa

Thanks a lot for the report and patch! =D

@doctrinebot
Collaborator

Issue was closed with resolution "Fixed"

@doctrinebot
Collaborator

Comment created by @beberlei:

Update fix version, this was merged into 2.1.5

@doctrinebot doctrinebot added this to the 2.1.5 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
@doctrinebot
Collaborator

Imported 1 attachments from Jira into https://gist.github.com/4df3c749f144ffbea002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment