File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,16 @@ awareness about deprecated code.
1212
1313Starting with the next major version, the only way to access data when using the criteria filtering
1414API is through direct (reflection-based) access at properties directly, also bypassing property hooks.
15- This is to ensure consistency with how the ORM/ODM work . See https://github.com/doctrine/collections/pull/472 for
15+ This is to ensure consistency with how the ORM/ODM works . See https://github.com/doctrine/collections/pull/472 for
1616the full motivation.
1717
1818To opt-in to the new behaviour, pass ` true ` for the ` $accessRawFieldValues ` parameter when creating a ` Criteria `
19- object through either ` Doctrine\Common\Collections\Criteria::create() ` or when calling the ` Doctrine\Common\Collections\Criteria ` constructor.
19+ object through either ` Doctrine\Common\Collections\Criteria::create() ` or when calling the ` Doctrine\Common\Collections\Criteria ` constructor.
20+
21+ Be aware that switching to reflection-based field access may prevent ORM or ODM proxy objects
22+ becoming initialized, since their triggers (like calling public methods) are bypassed. That might lead
23+ to ` null ` values being read from such objects, which may cause wrong filtering or sorting results.
24+ See https://github.com/doctrine/collections/issues/487 for more details on when this may happen.
2025
2126# Upgrade to 2.2
2227
You can’t perform that action at this time.
0 commit comments