public function getQuery($disable_chain = false, $condition = array())
    {
        $query = clone $this->_query;

        if ($disable_chain) {
            $query->disableChain();
        }

        if (!empty($condition)) {
            $query->where($condition);
        }

        return $query;
    }
public function getQuery($disable_chain = false, $condition = array())
    {
        $query = clone $this->_query;

        if ($disable_chain) {
            $query->disableChain();
        }

        if (!empty($condition)) {
            $query->where($condition);
        }

        return $query;
    }
public function getQuery ( $ disable_chain = false , $ condition = array ( ) ) { $ query = clone $ this -> _query ; if ( $ disable_chain ) { $ query -> disableChain ( ) ; } if ( ! empty ( $ condition ) ) { $ query -> where ( $ condition ) ; } return $ query ; }
Return the repostiroy query object.

@param bool  $disable_chain If set to to true then the chain is disabled for
the query instance
@param array $condition     A default condition to set for the query

@return AnDomainQuery
Return the repostiroy query object .