| @@ 497-505 (lines=9) @@ | ||
| 494 | * |
|
| 495 | * Embedded documents will not be processed. |
|
| 496 | */ |
|
| 497 | private function computeScheduleInsertsChangeSets() |
|
| 498 | { |
|
| 499 | foreach ($this->documentInsertions as $document) { |
|
| 500 | $class = $this->dm->getClassMetadata(get_class($document)); |
|
| 501 | if ( ! $class->isEmbeddedDocument) { |
|
| 502 | $this->computeChangeSet($class, $document); |
|
| 503 | } |
|
| 504 | } |
|
| 505 | } |
|
| 506 | ||
| 507 | /** |
|
| 508 | * Compute changesets of all documents scheduled for upsert. |
|
| @@ 512-520 (lines=9) @@ | ||
| 509 | * |
|
| 510 | * Embedded documents will not be processed. |
|
| 511 | */ |
|
| 512 | private function computeScheduleUpsertsChangeSets() |
|
| 513 | { |
|
| 514 | foreach ($this->documentUpserts as $document) { |
|
| 515 | $class = $this->dm->getClassMetadata(get_class($document)); |
|
| 516 | if ( ! $class->isEmbeddedDocument) { |
|
| 517 | $this->computeChangeSet($class, $document); |
|
| 518 | } |
|
| 519 | } |
|
| 520 | } |
|
| 521 | ||
| 522 | /** |
|
| 523 | * Only flush the given document according to a ruleset that keeps the UoW consistent. |
|