mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-617: ObjectHydrator issue with OneToMany relationship #756
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 (May 30, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user numan:
I'm pretty new to this ORM thing but I am having a weird issue with a DQL query I think should work (or throw an exception). I have the following code:
And when I execute:
I get the following trace:
The following data is in the database:
@doctrinebot commented on GitHub (May 30, 2010):
Comment created by numan:
After messing around with it a little bit, the following will work:
@doctrinebot commented on GitHub (Aug 7, 2010):
Comment created by romanb:
Hydration does not (yet?) support such kinds of queries where the root entity/schema name is not selected.
@doctrinebot commented on GitHub (Sep 15, 2010):
Comment created by @beberlei:
@roman i think this should be solved in conjunction with DDC-736 and throw an exception if the users tries to do this. Is this possible in linear time?
@doctrinebot commented on GitHub (Dec 28, 2010):
Comment created by @beberlei:
Fixed, a QueryException will now be thrown if attempting to select one or more identification variables without picking at least one root.
@doctrinebot commented on GitHub (Dec 28, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 2 attachments from Jira into https://gist.github.com/b1c109d9777185aea468