DDC-3976: [GH-1542] Failing test: Owned side of a oneToMany relation doesn't evict its collection cache #4853

Closed
opened 2026-01-22 14:50:31 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 2, 2015).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of guiwoda:

Url: https://github.com/doctrine/doctrine2/pull/1542

Message:

oneToMany Associations always have collections on the inversed side, and these collections are getting cached but never get evicted.
This also happens on bidirectional manyToMany associations, on the inverse side as well. Only owning side of an association gets its collections evicted.

Originally created by @doctrinebot on GitHub (Nov 2, 2015). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of guiwoda: Url: https://github.com/doctrine/doctrine2/pull/1542 Message: oneToMany Associations always have collections on the inversed side, and these collections are getting cached but never get evicted. This also happens on bidirectional manyToMany associations, on the inverse side as well. Only owning side of an association gets its collections evicted.
admin added the Bug label 2026-01-22 14:50:31 +01:00
admin closed this issue 2026-01-22 14:50:31 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 10, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1542] was closed:
https://github.com/doctrine/doctrine2/pull/1542

@doctrinebot commented on GitHub (Nov 10, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1542] was closed: https://github.com/doctrine/doctrine2/pull/1542
Author
Owner

@doctrinebot commented on GitHub (Nov 12, 2015):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 12, 2015): Issue was closed with resolution "Fixed"
Author
Owner

@UFTimmy commented on GitHub (Sep 19, 2016):

Am I reading this correctly that this won't be included in a release until 2.6? Apologies, it's a bit hard to follow with the links to JIRA now being 404s.

Is there any work around in the mean time? I am running into this bug all over the place when adding a new item to a collection.

@UFTimmy commented on GitHub (Sep 19, 2016): Am I reading this correctly that this won't be included in a release until 2.6? Apologies, it's a bit hard to follow with the links to JIRA now being 404s. Is there any work around in the mean time? I am running into this bug all over the place when adding a new item to a collection.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4853