/** * Work like SQL limit: LIMIT [offset,] row_count * @param $offset * @param null $rowCount * @return $this */ public function limit($offset, $rowCount = null) { if (is_null($rowCount)) { $this->_query->setRowCount($offset); } else { $this->_query->setOffset($offset); $this->_query->setRowCount($rowCount); } return $this; }