mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Deprecation false positive(?): Embeddable reported to require inheritance mapping type #7478
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 @havvg on GitHub (Feb 20, 2025).
Bug Report
Summary
We are currently migrating a project to Doctrine 3 and are encountering the following deprecation.
Current behavior
The deprecation about entity inheritance is raised on embeddables.
Expected behavior
There has been no issue within Doctrine 2 using this pattern. As you cannot define inheritance types on embeddables, the deprecation should not be raised for them. In addition, the behavior should work in Doctrine 3, as well. Will it?
How to reproduce
@greg0ire commented on GitHub (Feb 26, 2025):
Possible next steps:
$class->isEmbeddedClassto the code added in https://github.com/doctrine/orm/pull/10431@havvg commented on GitHub (Mar 7, 2025):
My current workaround is to simply add
inheritance-type="JOINED". While this silences the deprecation, it does not seem to have any effect at runtime. This also works with Doctrine v3.3.2.