mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
OneToManyPersister trigger deprecation. #7563
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 @laurentmuller on GitHub (Oct 26, 2025).
Bug Report
With commit doctrine/collections#472, the
OneToManyPersisterclass trigger deprecations.Summary
The
OneToManyPersisterclass useCriteriaclass without setting the$accessRawFieldValuesparameter value totrue.Current behavior
In the
count()function, aCriteriaclass is created without the$accessRawFieldValuesparameter:This is the same for the
containsKey()andcontains()functions.Expected behavior
No deprecation must be raised.
Or use:
How to reproduce
Just use a collection in an entity and call
count()function.@W0rma commented on GitHub (Nov 12, 2025):
@laurentmuller Can you confirm that the deprecation is gone in version
2.20.7and/or3.5.3?