src/Synapse/Mapper/AbstractMapper.php
protected function executeAndGetResultsAsEntity(PreparableSqlInterface $query)
    {
        $data = $this->execute($query)->current();

        if (! $data || count($data) === 0) {
            return false;
        }

        return $data;
    }
protected function executeAndGetResultsAsEntity(PreparableSqlInterface $query)
    {
        $data = $this->execute($query)->current();

        if (! $data || count($data) === 0) {
            return false;
        }

        return $data;
    }
protected function executeAndGetResultsAsEntity ( PreparableSqlInterface $ query ) { $ data = $ this -> execute ( $ query ) -> current ( ) ; if ( ! $ data || count ( $ data ) === 0 ) { return false ; } return $ data ; }
Execute a given query and return the result as a single Entity object or
false if no results are returned from the query.

@param  PreparableSqlInterface $query Query to be executed
@return AbstractEntity|bool
Execute a given query and return the result as a single Entity object or false if no results are returned from the query .