public function fetchAll($page, $pagination, $where)
    {
        $index = ceil(($page - 1) * $pagination);

        $where = $this->formatWhereClause($where);

        $sql = "
			select " . $this->getMappingAsSQL() . "
			from " . $this->getTable() . "
			" . $where . "
			limit " . $index . ',' . intval($pagination) . ";";

        $query = $this->driver->query($sql, [], static::DATA_OBJECT_CLASS);

        return $query->result();
    }
public function fetchAll($page, $pagination, $where)
    {
        $index = ceil(($page - 1) * $pagination);

        $where = $this->formatWhereClause($where);

        $sql = "
			select " . $this->getMappingAsSQL() . "
			from " . $this->getTable() . "
			" . $where . "
			limit " . $index . ',' . intval($pagination) . ";";

        $query = $this->driver->query($sql, [], static::DATA_OBJECT_CLASS);

        return $query->result();
    }
public function fetchAll ( $ page , $ pagination , $ where ) { $ index = ceil ( ( $ page - 1 ) * $ pagination ) ; $ where = $ this -> formatWhereClause ( $ where ) ; $ sql = "
			select " . $ this -> getMappingAsSQL ( ) . "
			from " . $ this -> getTable ( ) . "
			" . $ where . "
			limit " . $ index . ',' . intval ( $ pagination ) . ";" ; $ query = $ this -> driver -> query ( $ sql , [ ] , static :: DATA_OBJECT_CLASS ) ; return $ query -> result ( ) ; }
Actually fetch all the items with the given params

@param $page
@param $pagination
@param $where
@return \stdClass[]
Actually fetch all the items with the given params