DDC-2974: [GH-950] Can cache empty collections #3703

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

Originally created by @doctrinebot on GitHub (Feb 11, 2014).

Jira issue originally created by user @doctrinebot:

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

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

Message:

I should be able to cache an "empty" collection.

I have a some objects, where 90% of these have on-to-many relations with zero associated elements.
This causes doctrine to run a query each time, instead of cache it as empty relation.

Originally created by @doctrinebot on GitHub (Feb 11, 2014). Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of goetas: Url: https://github.com/doctrine/doctrine2/pull/950 Message: I should be able to cache an "empty" collection. I have a some objects, where 90% of these have on-to-many relations with zero associated elements. This causes doctrine to run a query each time, instead of cache it as empty relation.
admin added the Bug label 2026-01-22 14:25:49 +01:00
admin closed this issue 2026-01-22 14:25:49 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 12, 2014):

Comment created by @doctrinebot:

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

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

@doctrinebot commented on GitHub (Feb 12, 2014):

Comment created by @FabioBatSilva:

Fixed by : a3b4104612

@doctrinebot commented on GitHub (Feb 12, 2014): Comment created by @FabioBatSilva: Fixed by : https://github.com/doctrine/doctrine2/commit/a3b41046124e345ef75686c03446ceeeff2103ed
Author
Owner

@doctrinebot commented on GitHub (Feb 12, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 12, 2014): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3703