src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/AbstractFunction.php 1 location
|
@@ 88-96 (lines=9) @@
|
| 85 |
|
/** |
| 86 |
|
* {@inheritDoc} |
| 87 |
|
*/ |
| 88 |
|
public function getSql(SqlWalker $sqlWalker) |
| 89 |
|
{ |
| 90 |
|
$dispatched = []; |
| 91 |
|
foreach ($this->nodes as $node) { |
| 92 |
|
$dispatched[] = $node->dispatch($sqlWalker); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
return vsprintf($this->functionPrototype, $dispatched); |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
|
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Greatest.php 1 location
|
@@ 53-61 (lines=9) @@
|
| 50 |
|
/** |
| 51 |
|
* {@inheritDoc} |
| 52 |
|
*/ |
| 53 |
|
public function getSql(SqlWalker $sqlWalker) |
| 54 |
|
{ |
| 55 |
|
$dispatched = []; |
| 56 |
|
foreach ($this->nodes as $node) { |
| 57 |
|
$dispatched[] = $node->dispatch($sqlWalker); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
return sprintf($this->functionPrototype, implode(',', $dispatched)); |
| 61 |
|
} |
| 62 |
|
} |
| 63 |
|
|