[PR #8194] Associated entities are persisted when no direct persist is called or cascade is not configured #8193 #10853

Closed
opened 2026-01-22 16:08:54 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/8194

State: closed
Merged: No


If associated entities fetched using lazy loading are modified, they will be persisted along with the parent entity even when no persist has been called on the lazy loaded entity or any cascade configuration has been set.

As outlined under issuer here: https://github.com/doctrine/orm/issues/8193

Test run with

vendor/bin/phpunit --filter GH8193
**Original Pull Request:** https://github.com/doctrine/orm/pull/8194 **State:** closed **Merged:** No --- If associated entities fetched using lazy loading are modified, they will be persisted along with the parent entity even when no persist has been called on the lazy loaded entity or any cascade configuration has been set. As outlined under issuer here: https://github.com/doctrine/orm/issues/8193 Test run with ```bash vendor/bin/phpunit --filter GH8193 ```
admin added the pull-request label 2026-01-22 16:08:54 +01:00
admin closed this issue 2026-01-22 16:08:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10853