/** * {@inheritdoc} */ public function createUserPaginator(array $criteria = null, array $orderBy = null) { if (empty($criteria['user'])) { throw new NotFoundHttpException('Not found user.'); } return parent::createPaginator($criteria, $orderBy); }