Skip to content

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

doctrinebot opened this Issue Dec 19, 2011 · 5 comments

2 participants


Jira issue originally created by user goetas:

One to one entity over populated


Comment created by goetas:

I have created a test.

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

i think...

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


Comment created by @guilhermeblanco:

Fixed since this commit: 68663fa

Thanks a lot for the report and patch! =D


Issue was closed with resolution "Fixed"


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
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.