@@ 515-523 (lines=9) @@ | ||
512 | * |
|
513 | * Embedded documents will not be processed. |
|
514 | */ |
|
515 | private function computeScheduleInsertsChangeSets() |
|
516 | { |
|
517 | foreach ($this->documentInsertions as $document) { |
|
518 | $class = $this->dm->getClassMetadata(get_class($document)); |
|
519 | if ( ! $class->isEmbeddedDocument) { |
|
520 | $this->computeChangeSet($class, $document); |
|
521 | } |
|
522 | } |
|
523 | } |
|
524 | ||
525 | /** |
|
526 | * Compute changesets of all documents scheduled for upsert. |
|
@@ 530-538 (lines=9) @@ | ||
527 | * |
|
528 | * Embedded documents will not be processed. |
|
529 | */ |
|
530 | private function computeScheduleUpsertsChangeSets() |
|
531 | { |
|
532 | foreach ($this->documentUpserts as $document) { |
|
533 | $class = $this->dm->getClassMetadata(get_class($document)); |
|
534 | if ( ! $class->isEmbeddedDocument) { |
|
535 | $this->computeChangeSet($class, $document); |
|
536 | } |
|
537 | } |
|
538 | } |
|
539 | ||
540 | /** |
|
541 | * Only flush the given document according to a ruleset that keeps the UoW consistent. |