| @@ 349-365 (lines=17) @@ | ||
| 346 | /** |
|
| 347 | * Handle an update the major info command. |
|
| 348 | */ |
|
| 349 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 350 | { |
|
| 351 | ||
| 352 | /** @var Event $event */ |
|
| 353 | $event = $this->eventRepository->load($updateMajorInfo->getId()); |
|
| 354 | ||
| 355 | $event->updateMajorInfo( |
|
| 356 | $updateMajorInfo->getTitle(), |
|
| 357 | $updateMajorInfo->getEventType(), |
|
| 358 | $updateMajorInfo->getLocation(), |
|
| 359 | $updateMajorInfo->getCalendar(), |
|
| 360 | $updateMajorInfo->getTheme() |
|
| 361 | ); |
|
| 362 | ||
| 363 | $this->eventRepository->save($event); |
|
| 364 | ||
| 365 | } |
|
| 366 | ||
| 367 | /** |
|
| 368 | * Handle a delete event command. |
|
| @@ 226-242 (lines=17) @@ | ||
| 223 | /** |
|
| 224 | * Handle an update the major info command. |
|
| 225 | */ |
|
| 226 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 227 | { |
|
| 228 | ||
| 229 | /** @var Place $place */ |
|
| 230 | $place = $this->placeRepository->load($updateMajorInfo->getId()); |
|
| 231 | ||
| 232 | $place->updateMajorInfo( |
|
| 233 | $updateMajorInfo->getTitle(), |
|
| 234 | $updateMajorInfo->getEventType(), |
|
| 235 | $updateMajorInfo->getAddress(), |
|
| 236 | $updateMajorInfo->getCalendar(), |
|
| 237 | $updateMajorInfo->getTheme() |
|
| 238 | ); |
|
| 239 | ||
| 240 | $this->placeRepository->save($place); |
|
| 241 | ||
| 242 | } |
|
| 243 | ||
| 244 | /** |
|
| 245 | * Handle a delete place command. |
|