mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3585: [GH-1311] [DDC-3582] Wrong class is instantiated when using nested embeddables #4407
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 (Feb 24, 2015).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of jankramer:
Url: https://github.com/doctrine/doctrine2/pull/1311
Message:
Consider the example where an entity contains an embeddable, that itself contains 2 different embeddables. So Entity -> Embeddable 1 -> (Embeddable 2, Embeddable 3). In this case, EmbeddableContainer will be instantiated as an Embeddable1 for some reason.
I looked at the code in the ReflectionEmbeddedProperty, and noticed that 'embeddedClass' was recently changed from 'class'. If I change it back, this test passes, but then the ReflectionEmbeddedPropertyTest fails on the scenario for abstract classes.
@doctrinebot commented on GitHub (Feb 27, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1311] was assigned:
https://github.com/doctrine/doctrine2/pull/1311
@doctrinebot commented on GitHub (Feb 27, 2015):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Feb 27, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1311] was merged:
https://github.com/doctrine/doctrine2/pull/1311