| @@ 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. |
|
| @@ 265-274 (lines=10) @@ | ||
| 262 | * Apply the typical age range updated event to the place repository. |
|
| 263 | * @param TypicalAgeRangeUpdated $typicalAgeRangeUpdated |
|
| 264 | */ |
|
| 265 | protected function applyTypicalAgeRangeUpdated( |
|
| 266 | TypicalAgeRangeUpdated $typicalAgeRangeUpdated |
|
| 267 | ) { |
|
| 268 | $document = $this->loadPlaceDocumentFromRepository($typicalAgeRangeUpdated); |
|
| 269 | ||
| 270 | $eventLd = $document->getBody(); |
|
| 271 | $eventLd->typicalAgeRange = $typicalAgeRangeUpdated->getTypicalAgeRange(); |
|
| 272 | ||
| 273 | $this->repository->save($document->withBody($eventLd)); |
|
| 274 | } |
|
| 275 | ||
| 276 | /** |
|
| 277 | * Apply the typical age range deleted event to the place repository. |
|