DDC-3437: [GH-1213] fix instantiation of embedded object in ReflectionEmbeddedProperty #4237

Closed
opened 2026-01-22 14:37:54 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Dec 6, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of austinsmorris:

Url: https://github.com/doctrine/doctrine2/pull/1213

Message:

Recently, ReflectionEmbeddedProperty was updated to extend ReflectionProperty. This broke any embeddable that extends an abstract class. That's because if a property is defined in the abstract class, $this->class is alway the abstract class and thus cannot be instantiated. The $class parameter that is passed into the constructor needs to be stored, and that class should be instantiated, not the the property's declaring class.

Originally created by @doctrinebot on GitHub (Dec 6, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of austinsmorris: Url: https://github.com/doctrine/doctrine2/pull/1213 Message: Recently, ReflectionEmbeddedProperty was updated to extend ReflectionProperty. This broke any embeddable that extends an abstract class. That's because if a property is defined in the abstract class, <code>$this->class</code> is alway the abstract class and thus cannot be instantiated. The <code>$class</code> parameter that is passed into the constructor needs to be stored, and that class should be instantiated, not the the property's declaring class.
admin added the Bug label 2026-01-22 14:37:54 +01:00
admin closed this issue 2026-01-22 14:37:54 +01:00
Author
Owner
@doctrinebot commented on GitHub (Dec 6, 2014): - relates to [DDC-3431: [GH-1207] Embedded classes reflection new instance creation with internal PHP classes](http://www.doctrine-project.org/jira/browse/DDC-3431)
Author
Owner

@doctrinebot commented on GitHub (Dec 7, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1213] was assigned:
https://github.com/doctrine/doctrine2/pull/1213

@doctrinebot commented on GitHub (Dec 7, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-1213] was assigned: https://github.com/doctrine/doctrine2/pull/1213
Author
Owner

@doctrinebot commented on GitHub (Dec 8, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1213] was closed:
https://github.com/doctrine/doctrine2/pull/1213

@doctrinebot commented on GitHub (Dec 8, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-1213] was closed: https://github.com/doctrine/doctrine2/pull/1213
Author
Owner

@doctrinebot commented on GitHub (Dec 8, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Dec 8, 2014): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4237