DDC-3585: [GH-1311] [DDC-3582] Wrong class is instantiated when using nested embeddables #4407

Closed
opened 2026-01-22 14:41:06 +01:00 by admin · 3 comments
Owner

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.

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.
admin added the Bug label 2026-01-22 14:41:06 +01:00
admin closed this issue 2026-01-22 14:41:06 +01:00
Author
Owner

@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): Comment created by @doctrinebot: A related Github Pull-Request [GH-1311] was assigned: https://github.com/doctrine/doctrine2/pull/1311
Author
Owner

@doctrinebot commented on GitHub (Feb 27, 2015):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 27, 2015): Issue was closed with resolution "Fixed"
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4407