mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Getting embeddable should trigger entity initalization #5550
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 @mkosiedowski on GitHub (May 22, 2017).
Originally assigned to: @Ocramius on GitHub.
Getting public embeddables on lazy-loaded entity which is not initialized does not trigger entity initialization.
Common ProxyGenerator in
\Doctrine\Common\Proxy\ProxyGenerator::getLazyLoadedPublicPropertiesuses code:The interface
\Doctrine\Common\Persistence\Mapping\ClassMetadatacannot be extended without breaking backward compatibility so ORM has to returntruefor embeddables either inhasFieldor inhasAssociation. In my opinion this should behasField@Ocramius commented on GitHub (Jun 1, 2017):
Handled in #6462