Split and deprecate AbstractQuery#useResultCache()#7701
Split and deprecate AbstractQuery#useResultCache()#7701lcobucci merged 2 commits intodoctrine:2.7from
Conversation
|
IMO you should fixup the first commit into the new one. Do you know how to do this without creating a new PR? Otherwise I can help. |
|
@greg0ire yes. Last time i recreated the PR because a) initial branch was wrong (i committed directly to 2.7 of my fork), and b) interactive rebase rendered in merge conflicts for some reason, even if i tried to rebase without changing anything in commits order. It was easier to just start over and cherry-pick. Okay, will rebase and force push now. |
5e891fc to
0abffd1
Compare
df22e8a to
67a62ae
Compare
greg0ire
left a comment
There was a problem hiding this comment.
It reads far better now, great work!
|
Are there no docs that need to be updated? |
|
The deprecation should be added to the UPGRADE.md document too? |
SenseException
left a comment
There was a problem hiding this comment.
useResultCache appears in https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/caching.html#result-cache and needs to be mentioned/adapted for 2.7.
|
Got it, will add the requested changes to documentation and |
|
Made the requested changes to documentation. Also i'd like to reject @SenseException 's suggestion for the reasons described above. |
SenseException
left a comment
There was a problem hiding this comment.
Looks good to me.
Will those changes be merged or picked into master or is another PR for master needed?
|
@SenseException there is a pull request to master: #7214 |
9c88aa8 to
fe7c61e
Compare
fe7c61e to
e8f265d
Compare
…gin-master v2.7.0 [](https://travis-ci.org/doctrine/orm) This release solves Symfony 5.0 compatibility issues, some small improvements, and adds various deprecation notices. Please read carefully the [upgrade to 2.7 notes](https://github.com/doctrine/orm/blob/2.7/UPGRADE.md#upgrade-to-27) to know more about the reasons and how to fix the deprecation messages. --- - Total issues resolved: **1** - Total pull requests resolved: **15** - Total contributors: **10** Deprecation ----------- - [7911: Be explicit about which Doctrine package in message](doctrine#7911) thanks to @lcobucci - [7909: Add deprecation messages](doctrine#7909) thanks to @lcobucci - [7901: Add deprecation warnings for 2.7.x](doctrine#7901) thanks to @lcobucci - [7701: Split and deprecate AbstractQuery#useResultCache()](doctrine#7701) thanks to @someniatko CI -- - [7904: Make sure composer files are valid](doctrine#7904) thanks to @greg0ire - [7600: &doctrine#91;2.7&doctrine#93; CI: Test against PHP 7.4snapshot instead of nightly (8.0)](doctrine#7600) thanks to @Majkl578 Improvement ----------- - [7876: Fix compat of commands with Symfony 5](doctrine#7876) thanks to @nicolas-grekas - [7829: Skip Paginator LIMIT subquery and WHERE IN if query do not have LIMIT](doctrine#7829) thanks to @Seb33300 - [7723: Allow Symfony 5.0](doctrine#7723) thanks to @nicolas-grekas - [7710: Prettified arrays in tool command orm:mapping:describe](doctrine#7710) thanks to @rtek - [7340: Fix config template for PHPUnit >= 7.2](doctrine#7340) thanks to @guilliamxavier BC Break,Improvement -------------------- - [7863: Paginator: Skip limit subquery if not required](doctrine#7863) thanks to @Seb33300 Documentation ------------- - [7382: Update homepage](doctrine#7382) thanks to @Majkl578 Bug --- - [7326: Cherry-pick doctrine#7307 to fix remaining usages of deprecated ClassLoader and Inflector from doctrine/common](doctrine#7326) thanks to @nicolas-grekas - [7079: Fix getJoinTableName for sqlite with schema attribute](doctrine#7079) thanks to @mairo744 BC Break,Deprecation,Improvement -------------------------------- - [6803: Deprecation of EntityManager copy method](doctrine#6803) thanks to @SenseException
Split
useResultCache($boolFlag, ...)intoenableResultCache()anddisableResutCache().To create tests for
enableResultCache()anddisableResultCache(),useResultCache()'s tests were copy-pasted, but I think that's fine.This is proper PR, original one is #7213