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