mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3450: Embeddables containing only nested embeddables are not hydrated properly #4256
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 (Dec 16, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jamesmoss:
I have the following object mapping:
{quote}
Location (entity)
{quote}
{quote}
Bounds (embeddable)
{quote}
{quote}
Coords (embeddable)
{quote}
This setup works fine when persisting entities, the database schema is correct, etc. but when I fetch my
Locationentity afterwards theboundsproperty is wrong. It looks something like this. CallinggetBounds()onLocationreturns something like:{quote}
Coords
{quote}
As if the
Coordsembeddable has been transposed with theBoundsembeddable.If I add another property to
Boundsthat isn't an embeddable (say a string) then it's hydrated correctly.@doctrinebot commented on GitHub (Dec 16, 2014):
Comment created by @ocramius:
[~jamesmoss] could you come up with a small test case in https://github.com/doctrine/doctrine2/tree/v2.4.7/tests/Doctrine/Tests/ORM/Functional/Ticket ?