|
@@ 187-198 (lines=12) @@
|
| 184 |
|
/** |
| 185 |
|
* @param AddressUpdated $addressUpdated |
| 186 |
|
*/ |
| 187 |
|
protected function applyAddressUpdated(AddressUpdated $addressUpdated) |
| 188 |
|
{ |
| 189 |
|
$organizerId = $addressUpdated->getOrganizerId(); |
| 190 |
|
$address = $addressUpdated->getAddress(); |
| 191 |
|
|
| 192 |
|
$document = $this->repository->get($organizerId); |
| 193 |
|
|
| 194 |
|
$jsonLD = $document->getBody(); |
| 195 |
|
$jsonLD->address = $address->toJsonLd(); |
| 196 |
|
|
| 197 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
/** |
| 201 |
|
* @param ContactPointUpdated $contactPointUpdated |
|
@@ 203-214 (lines=12) @@
|
| 200 |
|
/** |
| 201 |
|
* @param ContactPointUpdated $contactPointUpdated |
| 202 |
|
*/ |
| 203 |
|
protected function applyContactPointUpdated(ContactPointUpdated $contactPointUpdated) |
| 204 |
|
{ |
| 205 |
|
$organizerId = $contactPointUpdated->getOrganizerId(); |
| 206 |
|
$contactPoint = $contactPointUpdated->getContactPoint(); |
| 207 |
|
|
| 208 |
|
$document = $this->repository->get($organizerId); |
| 209 |
|
|
| 210 |
|
$jsonLD = $document->getBody(); |
| 211 |
|
$jsonLD->contactPoint = $contactPoint->toJsonLd(); |
| 212 |
|
|
| 213 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
/** |
| 217 |
|
* @param OrganizerUpdatedFromUDB2 $organizerUpdatedFromUDB2 |