Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release 2.19.7 into 2.20.x #11582

Merged
merged 9 commits into from
Aug 23, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

k00ni and others added 9 commits June 28, 2024 09:00
working-with-objects.rst: added missing white space
The Query class (used for DQL queries) takes care of using the value and
type as is when a type was specified for a parameter instead of going
through the default processing of values.
The NativeQuery class was missing the equivalent check, making the
custom type work only if the default processing of values does not
convert the value to a different one.
Fix the support for custom parameter types in native queries
single-inheritence entity parent as targetEntity.

When using the parent entity for a single-inheritence table as the
targetEntity for a property, the discriminator value should be all
of the values in the discriminator map.
OneToManyPersister::deleteEntityCollection has been amended to
reflect this.
Co-authored-by: Grégoire Paris <[email protected]>
…le_inheritence_parent_relation_bugfix

GH11551 - fix OneToManyPersister::deleteEntityCollection case where single-inheritence table parent entity is targetEntity.
If the source entity for an inverse (non-owning) 1-1 relationship is
identified by an association then the identifying association may not
be set when an inverse one-to-one association is resolved. This means
that no data is available in the entity to resolve the needed column
value for the join query.

The original entity data can be retrieved from the unit of work and
is used as a fallback to populate the query condition.

Fixes #11108
Original entity data resolves inverse 1-1 joins
@greg0ire greg0ire merged commit 74ef282 into 2.20.x Aug 23, 2024
58 checks passed
@derrabus derrabus deleted the 2.19.x-merge-up-into-2.20.x_0oKsBvVN branch October 13, 2024 19:50
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.

5 participants