private function getFilter($keyCondition)
    {
        $filter     = clone $this->expr->condition;
        $conditions = $keyCondition instanceof Composite ?
            $keyCondition->getParts() : [$keyCondition];

        foreach ($conditions as $condition) {
            $filter->remove($condition);
        }

        return $filter;
    }
private function getFilter($keyCondition)
    {
        $filter     = clone $this->expr->condition;
        $conditions = $keyCondition instanceof Composite ?
            $keyCondition->getParts() : [$keyCondition];

        foreach ($conditions as $condition) {
            $filter->remove($condition);
        }

        return $filter;
    }
private function getFilter ( $ keyCondition ) { $ filter = clone $ this -> expr -> condition ; $ conditions = $ keyCondition instanceof Composite ? $ keyCondition -> getParts ( ) : [ $ keyCondition ] ; foreach ( $ conditions as $ condition ) { $ filter -> remove ( $ condition ) ; } return $ filter ; }
Return a expression containing only the subexpression parts which are not
part of specified key condition.

@param Equality|AddAnd $keyCondition

@return AddAnd
Return a expression containing only the subexpression parts which are not part of specified key condition .