src/Synapse/Mapper/AbstractMapper.php
protected function executeAndGetResultsAsEntityIterator(PreparableSqlInterface $query)
    {
        $entities = $this->execute($query)
            ->toEntityArray();

        return new EntityIterator($entities);
    }
protected function executeAndGetResultsAsEntityIterator(PreparableSqlInterface $query)
    {
        $entities = $this->execute($query)
            ->toEntityArray();

        return new EntityIterator($entities);
    }
protected function executeAndGetResultsAsEntityIterator ( PreparableSqlInterface $ query ) { $ entities = $ this -> execute ( $ query ) -> toEntityArray ( ) ; return new EntityIterator ( $ entities ) ; }
Execute a given query and return the result as an Entity Iterator object

@param  PreparableSqlInterface $query Query to be executed
@return EntityIterator
Execute a given query and return the result as an Entity Iterator object