mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[2.20] Invalid field override when converting YAML to XML #7477
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 @ro0NL on GitHub (Feb 20, 2025).
Bug Report
Summary
We're using an entity with SINGLE_TABLE inheritance in YAML config.
Currently the
inversedByvalue is overridden using an association override in the child classes (as per https://stackoverflow.com/questions/22745653/overriding-inversedby-mapping-in-doctrine-2-inheritance);This validates fine using
bin/console doctrine:schema:validate --skip-sync.When trying to convert to XML using
bin/console doctrine:mapping:convert xml path --filter=Somewe get a mapping error suddenly:Current behavior
Unable to convert to XML.
Expected behavior
Able to convert to XML.