[PR #1380] Fix issue with second-level-cache tests and versioned entities #9438

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

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

State: closed
Merged: No


I'm not sure why this bug doesn't show normally within master, but I ran across it with pull-request build 3930.1, where it complained since $targetPersister was not an instance of CachedPersister.

The immediate fix seems straightforward, because DefaultCollectionHydrator doesn't even accept the second argument.

@FabioBatSilva : Please let me know if you see some better resolution to this, or if it indicates some edge-case in the second-level-cache logic that requires a new test.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1380 **State:** closed **Merged:** No --- I'm not sure why this bug doesn't show normally within `master`, but I ran across it with pull-request build [3930.1](https://travis-ci.org/doctrine/doctrine2/jobs/57975906), where it complained since `$targetPersister` was not an instance of `CachedPersister`. The immediate fix seems straightforward, because `DefaultCollectionHydrator` doesn't even accept the second argument. @FabioBatSilva : Please let me know if you see some better resolution to this, or if it indicates some edge-case in the second-level-cache logic that requires a new test.
admin added the pull-request label 2026-01-22 16:04:19 +01:00
admin closed this issue 2026-01-22 16:04:20 +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#9438