mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
MappingException with report_fields_where_declared: true #7286
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 @BackNot on GitHub (Dec 20, 2023).
Bug Report
Summary
With the option report_fields_where_declared I get error
Reproduce
I updated the doctrine recipe and set this option to true:
I have the following class hierarchy:
I understand that with this setting if I have the property "id" both in my parent and child the error will be shown. But currently I just inherit it and I do not overwrite it anywhere.
If I drop class C and put this field in class B this error is not triggered.