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