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 2.19.x up into 3.2.x #11581

Merged
merged 12 commits into from
Aug 23, 2024
Merged

Merge 2.19.x up into 3.2.x #11581

merged 12 commits into from
Aug 23, 2024

Conversation

greg0ire
Copy link
Member

No description provided.

GromNaN and others added 12 commits June 26, 2024 19:18
doc: Use modern array syntax in getting started
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.
…r_type

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]>
…ter_single_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 doctrine#11108
Original entity data resolves inverse 1-1 joins
@greg0ire greg0ire merged commit 831a1eb into doctrine:3.2.x Aug 23, 2024
65 checks passed
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.

6 participants