~desarrollokumbia/kumbia/ActiveRecord

« back to all changes in this revision

Viewing changes to active_record2/active_record2.php

  • Committer: Emilio Silveira
  • Date: 2010-01-08 04:39:33 UTC
  • Revision ID: emilio.rst@gmail.com-20100108043933-lp4r2srpcvzzxo9n
Correccion Adapther => Adapter

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
    public function findBySql($sql)
99
99
    {
100
100
        // carga el adaptador especifico para la conexion
101
 
        $adapther = DbAdapther::factory($this->_connection);
 
101
        $adapter = DbAdapter::factory($this->_connection);
102
102
    
103
103
        // si no es un string, entonces es DbQuery
104
104
        if(!is_string($sql)) {
105
 
            $sql = $adapther->query($sql);
 
105
            $sql = $adapter->query($sql);
106
106
        }
107
107
        
108
108
        // ejecuta la consulta
109
 
        return $adapther->pdo()->query($sql);
 
109
        return $adapter->pdo()->query($sql);
110
110
    }
111
111
}
 
 
b'\\ No newline at end of file'