protected function executeAndGetResultsAsArray(PreparableSqlInterface $query)
    {
        $statement = $this->getSqlObject()->prepareStatementForSqlObject($query);
        $resultSet = new ResultSet();

        $resultSet->initialize($statement->execute());

        return $resultSet->toArray();
    }