lib/Doctrine/ORM/Query/SqlWalker.php
public function walkCoalesceExpression($coalesceExpression)
    {
        $sql = 'COALESCE(';

        $scalarExpressions = [];

        foreach ($coalesceExpression->scalarExpressions as $scalarExpression) {
            $scalarExpressions[] = $this->walkSimpleArithmeticExpression($scalarExpression);
        }

        return $sql . implode(', ', $scalarExpressions) . ')';
    }
public function walkCoalesceExpression($coalesceExpression)
    {
        $sql = 'COALESCE(';

        $scalarExpressions = [];

        foreach ($coalesceExpression->scalarExpressions as $scalarExpression) {
            $scalarExpressions[] = $this->walkSimpleArithmeticExpression($scalarExpression);
        }

        return $sql . implode(', ', $scalarExpressions) . ')';
    }
public function walkCoalesceExpression ( $ coalesceExpression ) { $ sql = 'COALESCE(' ; $ scalarExpressions = [ ] ; foreach ( $ coalesceExpression -> scalarExpressions as $ scalarExpression ) { $ scalarExpressions [ ] = $ this -> walkSimpleArithmeticExpression ( $ scalarExpression ) ; } return $ sql . implode ( ', ' , $ scalarExpressions ) . ')' ; }
Walks down a CoalesceExpression AST node and generates the corresponding SQL.

@param AST\CoalesceExpression $coalesceExpression

@return string The SQL.
Walks down a CoalesceExpression AST node and generates the corresponding SQL .