[PR #714] [CLOSED] Cache results for extra lazy get #8600

Open
opened 2026-01-22 16:00:43 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/714
Author: @sandermarechal
Created: 7/3/2013
Status: Closed

Base: masterHead: cache-extra-lazy-get


📝 Commits (5)

  • 6ce83ac Cache results for extra lazy get
  • aa4f864 QueryCount style fix
  • 7448ac6 Do not cache items in the uninitialized collection
  • edf52f4 Drop cache when initializing collection
  • 6119595 Cache nonexistent keys as well

📊 Changes

2 files changed (+31 additions, -3 deletions)

View changed files

📝 lib/Doctrine/ORM/PersistentCollection.php (+18 -2)
📝 tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php (+13 -1)

📄 Description

Repeated getting of the same key on an extra lazy collection
should only issue a query for the first get, not for any
subsequent gets.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/714 **Author:** [@sandermarechal](https://github.com/sandermarechal) **Created:** 7/3/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `cache-extra-lazy-get` --- ### 📝 Commits (5) - [`6ce83ac`](https://github.com/doctrine/orm/commit/6ce83ac0c395a430cc88633e21774edd92ea61f2) Cache results for extra lazy get - [`aa4f864`](https://github.com/doctrine/orm/commit/aa4f864954f368d9a034c88dadf8393f19f23173) QueryCount style fix - [`7448ac6`](https://github.com/doctrine/orm/commit/7448ac673aed8b84004c968d7b21390e3d6cc092) Do not cache items in the uninitialized collection - [`edf52f4`](https://github.com/doctrine/orm/commit/edf52f4d6541a343b6391d03ba656c6ca312b9ad) Drop cache when initializing collection - [`6119595`](https://github.com/doctrine/orm/commit/61195955ccebeec2e586c8f4c6f3ce17e7f38eac) Cache nonexistent keys as well ### 📊 Changes **2 files changed** (+31 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/PersistentCollection.php` (+18 -2) 📝 `tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php` (+13 -1) </details> ### 📄 Description Repeated getting of the same key on an extra lazy collection should only issue a query for the first get, not for any subsequent gets. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:00:43 +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#8600