public function getModel($table, $name, $value)
    {
        //get the row
        $result = $this->getRow($table, $name, $value);

        if (is_null($result)) {
            return null;
        }

        return $this->model()->setTable($table)->set($result);
    }
public function getModel($table, $name, $value)
    {
        //get the row
        $result = $this->getRow($table, $name, $value);

        if (is_null($result)) {
            return null;
        }

        return $this->model()->setTable($table)->set($result);
    }
public function getModel ( $ table , $ name , $ value ) { //get the row $ result = $ this -> getRow ( $ table , $ name , $ value ) ; if ( is_null ( $ result ) ) { return null ; } return $ this -> model ( ) -> setTable ( $ table ) -> set ( $ result ) ; }
Returns a model given the column name and the value

@param *string      $table Table name
@param *string      $name  Column name
@param *scalar|null $value Column value

@return Model|null
Returns a model given the column name and the value