lib/Face/DiORM.php
public function select(Sql\Query\FQuery $fQuery, $useGlobalInstanceKeeper = false)
    {
        $statement=$fQuery->execute($this->config->getPdo());

        if($useGlobalInstanceKeeper){
            $instanceKeeper = $this->instancesKeeper;
        }else{
            $instanceKeeper = new InstancesKeeper();
        }

        if (!$statement->rowCount()) {
            return new ResultSet($fQuery->getBaseFace(), $instanceKeeper);
        }

        $hydrator = new ArrayHydrator();
        $rs = $hydrator->hydrate($fQuery, $statement);
        return $rs;
    }
public function select(Sql\Query\FQuery $fQuery, $useGlobalInstanceKeeper = false)
    {
        $statement=$fQuery->execute($this->config->getPdo());

        if($useGlobalInstanceKeeper){
            $instanceKeeper = $this->instancesKeeper;
        }else{
            $instanceKeeper = new InstancesKeeper();
        }

        if (!$statement->rowCount()) {
            return new ResultSet($fQuery->getBaseFace(), $instanceKeeper);
        }

        $hydrator = new ArrayHydrator();
        $rs = $hydrator->hydrate($fQuery, $statement);
        return $rs;
    }
public function select ( Sql \ Query \ FQuery $ fQuery , $ useGlobalInstanceKeeper = false ) { $ statement = $ fQuery -> execute ( $ this -> config -> getPdo ( ) ) ; if ( $ useGlobalInstanceKeeper ) { $ instanceKeeper = $ this -> instancesKeeper ; } else { $ instanceKeeper = new InstancesKeeper ( ) ; } if ( ! $ statement -> rowCount ( ) ) { return new ResultSet ( $ fQuery -> getBaseFace ( ) , $ instanceKeeper ) ; } $ hydrator = new ArrayHydrator ( ) ; $ rs = $ hydrator -> hydrate ( $ fQuery , $ statement ) ; return $ rs ; }
Execute a select query, parse the result and returns a resultSet
@param \Face\Sql\Query\FQuery $fQuery
@return Sql\Result\ResultSet
Execute a select query parse the result and returns a resultSet