public function andWhere($condition);
/** * Set the page-from-pk option * @param QueryInterface $query */ protected function setPageFrom(QueryInterface $query) { if ($this->pageFromPk) { $class = $this->query->modelClass; $pks = $class::primaryKey(); if (count($pks) > 1) { throw new NotSupportedException('The "page-from-pk" filter can not be apply for composite primary key.'); } $query->andWhere(['<', $pks[0], $this->pageFromPk]); } return $query; }