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