Skip to content

Commit

Permalink
Update PaginateORM.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dracony authored May 3, 2017
1 parent 95657ca commit 8fce480
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/PHPixie/PaginateORM.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ public function __construct($paginate)
$this->builder = $this->buildBuilder($paginate);
}

public function queryLoader($query, $preload = array())
public function queryLoader($query, $preload = array(), $fields = null)
{
return $this->builder->queryLoader($query, $preload);
return $this->builder->queryLoader($query, $preload, $fields);
}

public function queryPager($query, $pageSize, $preload = array())
public function queryPager($query, $pageSize, $preload = array(), $fields = null)
{
return $this->builder->queryPager($query, $pageSize, $preload);
return $this->builder->queryPager($query, $pageSize, $preload, $fields);
}

public function builder()
Expand All @@ -31,4 +31,4 @@ protected function buildBuilder($paginate)
{
return new PaginateORM\Builder($paginate);
}
}
}

0 comments on commit 8fce480

Please sign in to comment.