| @@ 264-277 (lines=14) @@ | ||
| 261 | * Apply the description updated event to the place repository. |
|
| 262 | * @param DescriptionUpdated $descriptionUpdated |
|
| 263 | */ |
|
| 264 | protected function applyDescriptionUpdated( |
|
| 265 | DescriptionUpdated $descriptionUpdated |
|
| 266 | ) { |
|
| 267 | ||
| 268 | $document = $this->loadPlaceDocumentFromRepository($descriptionUpdated); |
|
| 269 | ||
| 270 | $placeLD = $document->getBody(); |
|
| 271 | if (empty($placeLD->description)) { |
|
| 272 | $placeLD->description = new \stdClass(); |
|
| 273 | } |
|
| 274 | $placeLD->description->{'nl'} = $descriptionUpdated->getDescription(); |
|
| 275 | ||
| 276 | $this->repository->save($document->withBody($placeLD)); |
|
| 277 | } |
|
| 278 | ||
| 279 | /** |
|
| 280 | * Apply the booking info updated event to the place repository. |
|
| @@ 658-670 (lines=13) @@ | ||
| 655 | * Apply the description updated event to the event repository. |
|
| 656 | * @param DescriptionUpdated $descriptionUpdated |
|
| 657 | */ |
|
| 658 | protected function applyDescriptionUpdated( |
|
| 659 | DescriptionUpdated $descriptionUpdated |
|
| 660 | ) { |
|
| 661 | $document = $this->loadDocumentFromRepository($descriptionUpdated); |
|
| 662 | ||
| 663 | $eventLd = $document->getBody(); |
|
| 664 | if (empty($eventLd->description)) { |
|
| 665 | $eventLd->description = new \stdClass(); |
|
| 666 | } |
|
| 667 | $eventLd->description->{'nl'} = $descriptionUpdated->getDescription(); |
|
| 668 | ||
| 669 | $this->repository->save($document->withBody($eventLd)); |
|
| 670 | } |
|
| 671 | ||
| 672 | /** |
|
| 673 | * Apply the typical age range updated event to the event repository. |
|