|
@@ 225-236 (lines=12) @@
|
| 222 |
|
/** |
| 223 |
|
* @param AddressUpdated $addressUpdated |
| 224 |
|
*/ |
| 225 |
|
private function applyAddressUpdated(AddressUpdated $addressUpdated) |
| 226 |
|
{ |
| 227 |
|
$organizerId = $addressUpdated->getOrganizerId(); |
| 228 |
|
$address = $addressUpdated->getAddress(); |
| 229 |
|
|
| 230 |
|
$document = $this->repository->get($organizerId); |
| 231 |
|
|
| 232 |
|
$jsonLD = $document->getBody(); |
| 233 |
|
$jsonLD->address = $address->toJsonLd(); |
| 234 |
|
|
| 235 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
/** |
| 239 |
|
* @param ContactPointUpdated $contactPointUpdated |
|
@@ 241-252 (lines=12) @@
|
| 238 |
|
/** |
| 239 |
|
* @param ContactPointUpdated $contactPointUpdated |
| 240 |
|
*/ |
| 241 |
|
private function applyContactPointUpdated(ContactPointUpdated $contactPointUpdated) |
| 242 |
|
{ |
| 243 |
|
$organizerId = $contactPointUpdated->getOrganizerId(); |
| 244 |
|
$contactPoint = $contactPointUpdated->getContactPoint(); |
| 245 |
|
|
| 246 |
|
$document = $this->repository->get($organizerId); |
| 247 |
|
|
| 248 |
|
$jsonLD = $document->getBody(); |
| 249 |
|
$jsonLD->contactPoint = $contactPoint->toJsonLd(); |
| 250 |
|
|
| 251 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 252 |
|
} |
| 253 |
|
|
| 254 |
|
/** |
| 255 |
|
* @param OrganizerUpdatedFromUDB2 $organizerUpdatedFromUDB2 |