|
@@ -206,7 +206,7 @@ class OrganizationFactory
|
|
|
|
|
|
|
|
if (
|
|
if (
|
|
|
$this->organizationIdentificationRepository->findOneBy(
|
|
$this->organizationIdentificationRepository->findOneBy(
|
|
|
- ['normalizedName' => $normalizedName, 'city' => $organizationCreationRequest->getCity()]
|
|
|
|
|
|
|
+ ['normalizedName' => $normalizedName, 'addressCity' => $organizationCreationRequest->getCity()]
|
|
|
)
|
|
)
|
|
|
) {
|
|
) {
|
|
|
throw new \RuntimeException(
|
|
throw new \RuntimeException(
|
|
@@ -224,8 +224,8 @@ class OrganizationFactory
|
|
|
if (
|
|
if (
|
|
|
$this->organizationIdentificationRepository->findOneBy(
|
|
$this->organizationIdentificationRepository->findOneBy(
|
|
|
[
|
|
[
|
|
|
- 'address' => $address,
|
|
|
|
|
- 'city' => $organizationCreationRequest->getCity(),
|
|
|
|
|
|
|
+ 'normalizedAddress' => $address,
|
|
|
|
|
+ 'addressCity' => $organizationCreationRequest->getCity(),
|
|
|
'postalCode' => $organizationCreationRequest->getPostalCode()
|
|
'postalCode' => $organizationCreationRequest->getPostalCode()
|
|
|
]
|
|
]
|
|
|
)
|
|
)
|