| @@ 209-225 (lines=17) @@ | ||
| 206 | /** |
|
| 207 | * Handle an update the major info command. |
|
| 208 | */ |
|
| 209 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 210 | { |
|
| 211 | ||
| 212 | /** @var Place $place */ |
|
| 213 | $place = $this->repository->load($updateMajorInfo->getId()); |
|
| 214 | ||
| 215 | $place->updateMajorInfo( |
|
| 216 | $updateMajorInfo->getTitle(), |
|
| 217 | $updateMajorInfo->getEventType(), |
|
| 218 | $updateMajorInfo->getAddress(), |
|
| 219 | $updateMajorInfo->getCalendar(), |
|
| 220 | $updateMajorInfo->getTheme() |
|
| 221 | ); |
|
| 222 | ||
| 223 | $this->repository->save($place); |
|
| 224 | ||
| 225 | } |
|
| 226 | ||
| 227 | /** |
|
| 228 | * Handle a delete place command. |
|
| @@ 172-188 (lines=17) @@ | ||
| 169 | /** |
|
| 170 | * Handle an update the major info command. |
|
| 171 | */ |
|
| 172 | public function handleUpdateMajorInfo(UpdateMajorInfo $updateMajorInfo) |
|
| 173 | { |
|
| 174 | ||
| 175 | /** @var Event $event */ |
|
| 176 | $event = $this->repository->load($updateMajorInfo->getId()); |
|
| 177 | ||
| 178 | $event->updateMajorInfo( |
|
| 179 | $updateMajorInfo->getTitle(), |
|
| 180 | $updateMajorInfo->getEventType(), |
|
| 181 | $updateMajorInfo->getLocation(), |
|
| 182 | $updateMajorInfo->getCalendar(), |
|
| 183 | $updateMajorInfo->getTheme() |
|
| 184 | ); |
|
| 185 | ||
| 186 | $this->repository->save($event); |
|
| 187 | ||
| 188 | } |
|
| 189 | ||
| 190 | /** |
|
| 191 | * Handle a delete event command. |
|