|
@@ 260-262 (lines=3) @@
|
| 257 |
|
// In order the MM query to work for a recursive MM query, we must invert some values. |
| 258 |
|
// tx_domain_model_foo0 (the alias) <--> tx_domain_model_foo (the origin table name) |
| 259 |
|
$values = []; |
| 260 |
|
foreach ($statementParts['fields'] as $key => $value) { |
| 261 |
|
$values[$key] = str_replace($tableName, $tableName . '0', $value); |
| 262 |
|
} |
| 263 |
|
$statementParts['fields'] = $values; |
| 264 |
|
|
| 265 |
|
// Same comment as above. |
|
@@ 267-269 (lines=3) @@
|
| 264 |
|
|
| 265 |
|
// Same comment as above. |
| 266 |
|
$values = []; |
| 267 |
|
foreach ($statementParts['where'] as $key => $value) { |
| 268 |
|
$values[$key] = str_replace($tableName . '0', $tableName, $value); |
| 269 |
|
} |
| 270 |
|
$statementParts['where'] = $values; |
| 271 |
|
|
| 272 |
|
// We must be more restrictive by transforming the "left" union by "inner" |