|
@@ 192-194 (lines=3) @@
|
| 189 |
|
// In order the MM query to work for a recursive MM query, we must invert some values. |
| 190 |
|
// tx_domain_model_foo0 (the alias) <--> tx_domain_model_foo (the origin table name) |
| 191 |
|
$values = []; |
| 192 |
|
foreach ($statementParts['fields'] as $key => $value) { |
| 193 |
|
$values[$key] = str_replace($tableName, $tableName . '0', $value); |
| 194 |
|
} |
| 195 |
|
$statementParts['fields'] = $values; |
| 196 |
|
|
| 197 |
|
// Same comment as above. |
|
@@ 199-201 (lines=3) @@
|
| 196 |
|
|
| 197 |
|
// Same comment as above. |
| 198 |
|
$values = []; |
| 199 |
|
foreach ($statementParts['where'] as $key => $value) { |
| 200 |
|
$values[$key] = str_replace($tableName . '0', $tableName, $value); |
| 201 |
|
} |
| 202 |
|
$statementParts['where'] = $values; |
| 203 |
|
|
| 204 |
|
// We must be more restrictive by transforming the "left" union by "inner" |