src/Bundle/Doctrine/PHPCRODM/ExpressionVisitor.php
public function dispatch(Expression $expr, ?AbstractNode $parentNode = null)
    {
        if ($parentNode === null) {
            $parentNode = $this->queryBuilder->where();
        }

        switch (true) {
            case $expr instanceof Comparison:
                return $this->walkComparison($expr, $parentNode);
            case $expr instanceof CompositeExpression:
                return $this->walkCompositeExpression($expr, $parentNode);
        }

        throw new \RuntimeException('Unknown Expression: ' . get_class($expr));
    }
public function dispatch(Expression $expr, ?AbstractNode $parentNode = null)
    {
        if ($parentNode === null) {
            $parentNode = $this->queryBuilder->where();
        }

        switch (true) {
            case $expr instanceof Comparison:
                return $this->walkComparison($expr, $parentNode);
            case $expr instanceof CompositeExpression:
                return $this->walkCompositeExpression($expr, $parentNode);
        }

        throw new \RuntimeException('Unknown Expression: ' . get_class($expr));
    }
public function dispatch ( Expression $ expr , ? AbstractNode $ parentNode = null ) { if ( $ parentNode === null ) { $ parentNode = $ this -> queryBuilder -> where ( ) ; } switch ( true ) { case $ expr instanceof Comparison : return $ this -> walkComparison ( $ expr , $ parentNode ) ; case $ expr instanceof CompositeExpression : return $ this -> walkCompositeExpression ( $ expr , $ parentNode ) ; } throw new \ RuntimeException ( 'Unknown Expression: ' . get_class ( $ expr ) ) ; }
Walk the given expression to build up the PHPCR-ODM query builder.



@throws \RuntimeException
Walk the given expression to build up the PHPCR - ODM query builder .