Bug #81822
closedAllow to clone QueryBuilder
100%
Description
The Doctrine query builder supports cloning, so should our Query Builder, which is just a wrapper around it.
$newQueryBuilder = clone $queryBuilder;
Cloning of the query builder is useful when e.g. implementing pagination where process looks usually like:
- User provides query builder without limit and page
- pagination takes the query builder, clones it, changes the select part to "count(*)" to get the count of the results
- pagination takes the original query builder adds a limit and offset, and executes the query
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53424
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53424
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53424
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53524
Updated by Tymoteusz Motylewski over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8960d9a5c979a0ac9c06e773f627ae728202d53d.