public function query($criteria=null)
    {
        $query = new \Pheasant\Query\Query($this->_connection);
        $query->from($this->_name);

        if(!is_null($criteria))
            $query->where($criteria);

        return $query;
    }
public function query($criteria=null)
    {
        $query = new \Pheasant\Query\Query($this->_connection);
        $query->from($this->_name);

        if(!is_null($criteria))
            $query->where($criteria);

        return $query;
    }
public function query ( $ criteria = null ) { $ query = new \ Pheasant \ Query \ Query ( $ this -> _connection ) ; $ query -> from ( $ this -> _name ) ; if ( ! is_null ( $ criteria ) ) $ query -> where ( $ criteria ) ; return $ query ; }
Builds a Query object for the table
Builds a Query object for the table