src/Synapse/Mapper/AbstractMapper.php
protected function executeAndGetResultsAsArray(PreparableSqlInterface $query)
    {
        $statement = $this->getSqlObject()->prepareStatementForSqlObject($query);
        $resultSet = new ResultSet();

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

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

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

        return $resultSet->toArray();
    }
protected function executeAndGetResultsAsArray ( PreparableSqlInterface $ query ) { $ statement = $ this -> getSqlObject ( ) -> prepareStatementForSqlObject ( $ query ) ; $ resultSet = new ResultSet ( ) ; $ resultSet -> initialize ( $ statement -> execute ( ) ) ; return $ resultSet -> toArray ( ) ; }
Execute the given query and return the result as an array of arrays

@param  PreparableSqlInterface $query Query to be executed
@return array
Execute the given query and return the result as an array of arrays