mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/12212
Author: @mpdude
Created: 10/9/2025
Status: ✅ Merged
Merged: 10/10/2025
Merged by: @greg0ire
Base:
2.20.x← Head:revert-11769📝 Commits (1)
2ad720bRevert "Fix fields of transient classes being considered duplicate withreportFieldsWhereDeclared(#11769)"📊 Changes
2 files changed (+0 additions, -49 deletions)
View changed files
📝
src/Mapping/Driver/ReflectionBasedDriver.php(+0 -5)📝
tests/Tests/ORM/Functional/Ticket/GH10450Test.php(+0 -44)📄 Description
Following up on https://github.com/doctrine/orm/pull/11769#issuecomment-3254415994, I would like to revert the changes made in
4feaa470af(#11769).Basically, it is wrong to allow fields from transient classes to be parsed and used for mapping configuration. This has happened and worked in the past, although it was never really endorsed or officially allowed by the documentation.
By adding the
reportFieldsWhereDeclaredopt-in switch (#10455), we were starting to enforce stricter configuration checks that help us to prevent other, strange errors further down the road. So,4feaa470afwas a step in the wrong direction.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.