mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1323: Join-Table with Metadata Hydrator: no results on non existing Metadata #1659
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 (Aug 7, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user slam:
Assume you have:
and now you have on the database:
||user_id||
|1|
||image_id||
|1|
||user_id||image_id||sort_number||
|1|1|NULL|
This is a legitimate situation.
Now, if you dqlQuery:
You will obtain, with HYDRATE_SCALAR:
But, due to the
AbstractHydrator::*gatherRowDatathat do not fill$nonemptyComponentswith the keyuImages, because the only filled keys are metaColumns,HYDRATE_OBJECTandHYDRATE*ARRAYwill fail:@doctrinebot commented on GitHub (Dec 15, 2011):
Comment created by @beberlei:
This was fixed in http://www.doctrine-project.org/jira/browse/DDC-1515
@doctrinebot commented on GitHub (Dec 15, 2011):
Issue was closed with resolution "Duplicate"