Skip to content

Conversation

jorenMartens and others added 26 commits November 7, 2024 10:48
[DDC-551] fix, add filter support in oneToOne relation 2.20.x
…ctor

This fixes a bug that arises when using Pagination and an entity relation is mapped with fetch-mode EAGER but setFetchMode LAZY (or anything that is not EAGER) has been used on the query. If the query use WITH condition, an exception is incorrectly raised (Associations with fetch-mode=EAGER may not be using WITH conditions).
The class LimitSubqueryOutputWalker clones the query, but not its parameters and hints, so the generated subquery does not know that fetch-mode has been overridden.

Fixes #11741
Clone query hints and parameters in `LimitSubqueryOutputWalker` constructor
Fix DQL example with composite key
update message to use attribute instead of annotation
Bumps [doctrine/.github](https://github.com/doctrine/.github) from 7.2.1 to 7.2.2.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@7.2.1...7.2.2)

---
updated-dependencies:
- dependency-name: doctrine/.github
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…0.x/doctrine/dot-github-7.2.2

Bump doctrine/.github from 7.2.1 to 7.2.2
…-attribute

Update message of `ORMInvalidArgumentException`
They don't have a special meaning, and are rendered like this:
<strong>*REQUIRED</strong>*.
Fix docs typo (nulable -> nullable)
These URLs are meant as identifiers rather than actual urls intended to
be used to perform an HTTP request.
Add more detailed caveats for using the Collection filtering API
The old proxy implementation of doctrine/common was triggered by public
methods rather than access to properties (making public properties
unsupported in entities), so tests could use public instance properties
to track the state of postLoad lifecycle callbacks without triggering
the proxy initialization when reading that state (which then changes the
state of triggering the postLoad callback).
As the new proxy implementation hooks into properties instead, the tests
now use a static method (ensuring it is reset properly before loading
the instance for which we care about the tracking) instead of an
instance property.
PostLoad listeners might initialize values for transient properties, so
the proxy should not skip initialization when using transient
properties.

Co-authored-by: Nicolas Grekas <[email protected]>
Fix the initialization of lazy-ghost proxies with postLoad listeners
@greg0ire greg0ire merged commit 528b883 into 2.21.x May 2, 2025
74 checks passed
@greg0ire greg0ire deleted the 2.20.x-merge-up-into-2.21.x_KkdqS0u7 branch May 2, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.