bridge/doctrine-collections/lib/CollectionsVisitor.php 1 location
|
@@ 24-31 (lines=8) @@
|
| 21 |
|
|
| 22 |
|
public function dispatch(Expression $expr) |
| 23 |
|
{ |
| 24 |
|
switch (true) { |
| 25 |
|
case $expr instanceof Comparison: |
| 26 |
|
return $this->walkComparison($expr); |
| 27 |
|
break; |
| 28 |
|
|
| 29 |
|
case $expr instanceof Composite: |
| 30 |
|
return $this->walkComposite($expr); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
throw new \RuntimeException('Unknown Expression: ' . get_class($expr)); |
| 34 |
|
} |
bridge/doctrine-orm/lib/PsiToOrmQueryBuilderConverter.php 1 location
|
@@ 116-123 (lines=8) @@
|
| 113 |
|
|
| 114 |
|
private function walkExpression(QueryBuilder $queryBuilder, Expression $expr) |
| 115 |
|
{ |
| 116 |
|
switch (true) { |
| 117 |
|
case $expr instanceof Comparison: |
| 118 |
|
return $this->walkComparison($queryBuilder, $expr); |
| 119 |
|
break; |
| 120 |
|
|
| 121 |
|
case $expr instanceof Composite: |
| 122 |
|
return $this->walkComposite($queryBuilder, $expr); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
throw new \RuntimeException(sprintf( |
| 126 |
|
'Unknown Expression: %s', |
bridge/doctrine-phpcr-odm/lib/ExpressionVisitor.php 1 location
|
@@ 39-45 (lines=7) @@
|
| 36 |
|
$parentNode = $this->queryBuilder->where(); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
switch (true) { |
| 40 |
|
case $expr instanceof Comparison: |
| 41 |
|
return $this->walkComparison($expr, $parentNode); |
| 42 |
|
|
| 43 |
|
case $expr instanceof Composite: |
| 44 |
|
return $this->walkComposite($expr, $parentNode); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
throw new \RuntimeException('Unknown Expression: ' . get_class($expr)); |
| 48 |
|
} |