| @@ 486-494 (lines=9) @@ | ||
| 483 | * |
|
| 484 | * Embedded documents will not be processed. |
|
| 485 | */ |
|
| 486 | private function computeScheduleInsertsChangeSets() |
|
| 487 | { |
|
| 488 | foreach ($this->documentInsertions as $document) { |
|
| 489 | $class = $this->dm->getClassMetadata(get_class($document)); |
|
| 490 | if ( ! $class->isEmbeddedDocument) { |
|
| 491 | $this->computeChangeSet($class, $document); |
|
| 492 | } |
|
| 493 | } |
|
| 494 | } |
|
| 495 | ||
| 496 | /** |
|
| 497 | * Compute changesets of all documents scheduled for upsert. |
|
| @@ 501-509 (lines=9) @@ | ||
| 498 | * |
|
| 499 | * Embedded documents will not be processed. |
|
| 500 | */ |
|
| 501 | private function computeScheduleUpsertsChangeSets() |
|
| 502 | { |
|
| 503 | foreach ($this->documentUpserts as $document) { |
|
| 504 | $class = $this->dm->getClassMetadata(get_class($document)); |
|
| 505 | if ( ! $class->isEmbeddedDocument) { |
|
| 506 | $this->computeChangeSet($class, $document); |
|
| 507 | } |
|
| 508 | } |
|
| 509 | } |
|
| 510 | ||
| 511 | /** |
|
| 512 | * Gets the changeset for a document. |
|