/**
  * @param $params
  * @param int $page
  * @param int $perPage
  * @param null $paginator
  * @return \Doctrine\Common\Collections\ArrayCollection
  */
 public function paginate($params, $page, $perPage, &$paginator = null)
 {
     return $this->repository->paginate($this->filter, $params, $page, $perPage, $paginator);
 }