Skip to content

Split and deprecate AbstractQuery#useResultCache()#7213

Closed
someniatko wants to merge 0 commit intodoctrine:2.7from
someniatko:2.7
Closed

Split and deprecate AbstractQuery#useResultCache()#7213
someniatko wants to merge 0 commit intodoctrine:2.7from
someniatko:2.7

Conversation

@someniatko
Copy link
Copy Markdown
Contributor

Split useResultCache($boolFlag, ...) into enableResultCache() and disableResutCache().

To create tests for enableResultCache() and disableResultCache(), useResultCache()'s tests were copy-pasted, but I think that's fine.

*
* @return static This query instance.
*/
public function enableResultCache($lifetime = null, $resultCacheId = null)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function enableResultCache($lifetime = null, $resultCacheId = null)
public function enableResultCache(?int $lifetime = null, ?string $resultCacheId = null): self

*
* @return static This query instance.
*/
public function disableResultCache()
Copy link
Copy Markdown
Member

@greg0ire greg0ire May 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function disableResultCache()
public function disableResultCache(): self

@greg0ire
Copy link
Copy Markdown
Member

greg0ire commented May 3, 2019

You will probably need to rebase as your branch contains commits that you did not author.

@someniatko
Copy link
Copy Markdown
Contributor Author

okay, will work on it later today

@someniatko
Copy link
Copy Markdown
Contributor Author

someniatko commented May 7, 2019

created new PR: #7701

@lcobucci lcobucci removed this from the 2.7.0 milestone Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants