| @@ 318-322 (lines=5) @@ | ||
| 315 | $this->relations[$relationTable->getName()][] = $row; |
|
| 316 | } |
|
| 317 | ||
| 318 | if ($table->getName() !== $relationTable->getName()) { |
|
| 319 | $cache = $row->getCache(); |
|
| 320 | $cache[$table->getName()] = $this; |
|
| 321 | $row->setCache($cache); |
|
| 322 | } |
|
| 323 | } |
|
| 324 | } |
|
| 325 | ||
| @@ 393-397 (lines=5) @@ | ||
| 390 | unset($this->relations[$relationTable->getName()][$row->id]); |
|
| 391 | } |
|
| 392 | ||
| 393 | if ($table->getName() !== $relationTable->getName()) { |
|
| 394 | $cache = $row->getCache(); |
|
| 395 | $cache[$table->getName()] = new NullValue(); |
|
| 396 | $row->setCache($cache); |
|
| 397 | } |
|
| 398 | ||
| 399 | return $this; |
|
| 400 | } |
|