mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #1213] fix instantiation of embedded object in ReflectionEmbeddedProperty #9271
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?
Original Pull Request: https://github.com/doctrine/orm/pull/1213
State: closed
Merged: No
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->classis alway the abstract class and thus cannot be instantiated. The$classparameter that is passed into the constructor needs to be stored, and that class should be instantiated, not the the property's declaring class.