mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #172] [MERGED] DDC-217 - Improve result cache support #7807
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/172
Author: @beberlei
Created: 10/23/2011
Status: ✅ Merged
Merged: 10/27/2011
Merged by: @beberlei
Base:
master← Head:DDC-217📝 Commits (2)
adc4840DDC-217 - Add support for QueryCacheProfiles and remove the old result caching code from ORM. Deprecate a bunch of methods in favor of using the AbstractQuery#getQueryCacheProfile method.a8052deAdded note about result cache changes📊 Changes
12 files changed (+109 additions, -156 deletions)
View changed files
📝
UPGRADE_TO_2_2(+14 -0)📝
lib/Doctrine/ORM/AbstractQuery.php(+50 -95)📝
lib/Doctrine/ORM/Configuration.php(+0 -21)📝
lib/Doctrine/ORM/NativeQuery.php(+8 -8)📝
lib/Doctrine/ORM/Query.php(+3 -0)📝
lib/Doctrine/ORM/Query/Exec/AbstractSqlExecutor.php(+16 -3)📝
lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php(+1 -8)📝
lib/Doctrine/ORM/Query/Exec/MultiTableUpdateExecutor.php(+1 -5)📝
lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php(+4 -4)📝
lib/Doctrine/ORM/Query/Exec/SingleTableDeleteUpdateExecutor.php(+4 -4)📝
lib/vendor/doctrine-dbal(+1 -1)📝
tests/Doctrine/Tests/ORM/Functional/ResultCacheTest.php(+7 -7)📄 Description
From the UPGRADE_TO_2_2 file:
ResultCache implementation rewritten
The result cache is completly rewritten and now works on the database result level, not inside the ORM AbstractQuery
anymore. This means that for result cached queries the hydration will now always be performed again, regardless of
the hydration mode. Affected areas are:
leading to problems during EntityManager#flush. Calls to EntityManager#merge are not necessary anymore.
The API is backwards compatible however most of the getter methods on the
AbstractQueryobject are nowdeprecated in favor of calling AbstractQuery#getQueryCacheProfile(). This method returns a
Doctrine\DBAL\Cache\QueryCacheProfileinstance with access to result cache driver, lifetime and cache key.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.