mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-261: Object population from OneToOne association #322
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 (Jan 18, 2010).
Jira issue originally created by user fabrizzio:
Bugreport cfr. http://groups.google.com/group/doctrine-user/browse_thread/thread/51f5c14377c40e3b
I have a OneToOne relationship defined between a Page and a PageTemplate entity:
When I try to fetch the Page and it's fully populated associated PageTemplate from the database, I get differect results using different Hydration modes (HYDRATE_OBJECT & HYDRATE_ARRAY):
When using:
... I get the following:
On the other hand when I'm using HYDRATE_ARRAY:
.. I get the following:
So fetch the object using HYDRATE_ARRAY returns the data I asked for, HYDRATE_OBJECT doesn't (returns a null object)