src/DataDefinition/ModelRelationship/FilterBuilder.php
public function encapsulateOr()
    {
        $root = $this->filters;

        $this->filters = new AndFilterBuilder();
        $this->filters->setBuilder($this);

        $orFilter = new OrFilterBuilder([$root]);
        $this->filters->add($orFilter);

        return $orFilter;
    }
public function encapsulateOr()
    {
        $root = $this->filters;

        $this->filters = new AndFilterBuilder();
        $this->filters->setBuilder($this);

        $orFilter = new OrFilterBuilder([$root]);
        $this->filters->add($orFilter);

        return $orFilter;
    }
public function encapsulateOr ( ) { $ root = $ this -> filters ; $ this -> filters = new AndFilterBuilder ( ) ; $ this -> filters -> setBuilder ( $ this ) ; $ orFilter = new OrFilterBuilder ( [ $ root ] ) ; $ this -> filters -> add ( $ orFilter ) ; return $ orFilter ; }
Encapsulate the root with an Or condition and return the OR condition.

@return OrFilterBuilder
Encapsulate the root with an Or condition and return the OR condition .