| @@ 556-566 (lines=11) @@ | ||
| 553 | $this->repository->save($document->withBody($eventLd)); |
|
| 554 | } |
|
| 555 | ||
| 556 | protected function applyDescriptionTranslated( |
|
| 557 | DescriptionTranslated $descriptionTranslated |
|
| 558 | ) { |
|
| 559 | $document = $this->loadDocumentFromRepository($descriptionTranslated); |
|
| 560 | ||
| 561 | $eventLd = $document->getBody(); |
|
| 562 | $eventLd->description->{$descriptionTranslated->getLanguage()->getCode( |
|
| 563 | )} = $descriptionTranslated->getDescription(); |
|
| 564 | ||
| 565 | $this->repository->save($document->withBody($eventLd)); |
|
| 566 | } |
|
| 567 | ||
| 568 | protected function applyTranslationApplied( |
|
| 569 | TranslationApplied $translationApplied |
|
| @@ 628-637 (lines=10) @@ | ||
| 625 | * Apply the typical age range updated event to the event repository. |
|
| 626 | * @param TypicalAgeRangeUpdated $typicalAgeRangeUpdated |
|
| 627 | */ |
|
| 628 | protected function applyTypicalAgeRangeUpdated( |
|
| 629 | TypicalAgeRangeUpdated $typicalAgeRangeUpdated |
|
| 630 | ) { |
|
| 631 | $document = $this->loadDocumentFromRepository($typicalAgeRangeUpdated); |
|
| 632 | ||
| 633 | $eventLd = $document->getBody(); |
|
| 634 | $eventLd->typicalAgeRange = $typicalAgeRangeUpdated->getTypicalAgeRange(); |
|
| 635 | ||
| 636 | $this->repository->save($document->withBody($eventLd)); |
|
| 637 | } |
|
| 638 | ||
| 639 | /** |
|
| 640 | * Apply the typical age range deleted event to the event repository. |
|
| @@ 290-299 (lines=10) @@ | ||
| 287 | * Apply the typical age range updated event to the place repository. |
|
| 288 | * @param TypicalAgeRangeUpdated $typicalAgeRangeUpdated |
|
| 289 | */ |
|
| 290 | protected function applyTypicalAgeRangeUpdated( |
|
| 291 | TypicalAgeRangeUpdated $typicalAgeRangeUpdated |
|
| 292 | ) { |
|
| 293 | $document = $this->loadPlaceDocumentFromRepository($typicalAgeRangeUpdated); |
|
| 294 | ||
| 295 | $eventLd = $document->getBody(); |
|
| 296 | $eventLd->typicalAgeRange = $typicalAgeRangeUpdated->getTypicalAgeRange(); |
|
| 297 | ||
| 298 | $this->repository->save($document->withBody($eventLd)); |
|
| 299 | } |
|
| 300 | ||
| 301 | /** |
|
| 302 | * Apply the typical age range deleted event to the place repository. |
|