RepositoryQuery: Actually return self in method peekAhead and not the parent

This commit is contained in:
Johannes Meyer 2018-04-24 09:26:45 +02:00
parent 1280137eae
commit b76e6e7597
1 changed files with 4 additions and 1 deletions

View File

@ -423,11 +423,14 @@ class RepositoryQuery implements QueryInterface, SortRules, FilterColumns, Itera
* Enabling this causes the current query limit to be increased by one. The potential extra row being yielded will * Enabling this causes the current query limit to be increased by one. The potential extra row being yielded will
* be removed from the result set. Note that this only applies when fetching multiple results of limited queries. * be removed from the result set. Note that this only applies when fetching multiple results of limited queries.
* *
* @param bool $state
*
* @return $this * @return $this
*/ */
public function peekAhead($state = true) public function peekAhead($state = true)
{ {
return $this->query->peekAhead($state); $this->query->peekAhead($state);
return $this;
} }
/** /**