src/DataBaseAR.php
public function get(){
        $res= FALSE;
        try{
            //Armo y preparo la consulta
            $query= $this->prepareSelect($this->select, $this->from, $this->where, $this->group, $this->having, $this->order, $this->limit);
            //Ejecuto la consulta
            $query->execute($this->where_values);
            //Controlo que este todo bien
            if($this->isOk($query)){
                $res= $query;
            }
            //Limpio las variables del AR
            $this->cleanVars();
        } catch (\PDOException $e) {
            $this->cleanVars();
            throw $e;
        }
        return $res;
    }
public function get(){
        $res= FALSE;
        try{
            //Armo y preparo la consulta
            $query= $this->prepareSelect($this->select, $this->from, $this->where, $this->group, $this->having, $this->order, $this->limit);
            //Ejecuto la consulta
            $query->execute($this->where_values);
            //Controlo que este todo bien
            if($this->isOk($query)){
                $res= $query;
            }
            //Limpio las variables del AR
            $this->cleanVars();
        } catch (\PDOException $e) {
            $this->cleanVars();
            throw $e;
        }
        return $res;
    }
public function get ( ) { $ res = FALSE ; try { //Armo y preparo la consulta $ query = $ this -> prepareSelect ( $ this -> select , $ this -> from , $ this -> where , $ this -> group , $ this -> having , $ this -> order , $ this -> limit ) ; //Ejecuto la consulta $ query -> execute ( $ this -> where_values ) ; //Controlo que este todo bien if ( $ this -> isOk ( $ query ) ) { $ res = $ query ; } //Limpio las variables del AR $ this -> cleanVars ( ) ; } catch ( \ PDOException $ e ) { $ this -> cleanVars ( ) ; throw $ e ; } return $ res ; }
Devuelve el resultado de la consulta armada de forma ActiveRecord
@return \PDOStatement o FALSE
@throws \PDOException
Devuelve el resultado de la consulta armada de forma ActiveRecord