From d607fff8c9519ee929e9306a42d0e59eb4163e34 Mon Sep 17 00:00:00 2001 From: Wilco Louwerse Date: Tue, 2 Jul 2024 12:46:39 +0200 Subject: [PATCH] Core update to searchobjects en countobjects, requires CoreBundle:1.4.13 --- composer.json | 2 +- publiccode.yaml | 12 ++++++------ src/Service/BrkService.php | 7 ++----- src/Service/GdsService.php | 1 - 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/composer.json b/composer.json index 4fbf62a..29eeae6 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "minimum-stability": "dev", "require": { "php": ">=8.0", - "commongateway/corebundle": ">=1.3.11", + "commongateway/corebundle": "^1.4.13 | <2.0", "league/flysystem-ziparchive": "^2.3.1" }, "require-dev": { diff --git a/publiccode.yaml b/publiccode.yaml index 71c1226..5000be2 100644 --- a/publiccode.yaml +++ b/publiccode.yaml @@ -72,14 +72,14 @@ localisation: dependsOn: open: - name: CommonGateway - versionMin: 1.2 - versionMax: 1.3 - version: 1.2.47 + versionMin: 1.4 + versionMax: 1.5 + version: 1.4.13 optional: false - name: CoreBundle - versionMin: 1.2 - versionMax: 1.3 - version: 1.2.47 + versionMin: 1.4 + versionMax: 1.5 + version: 1.4.13 optional: false roadmap: null inputTypes: diff --git a/src/Service/BrkService.php b/src/Service/BrkService.php index 16a8cf0..b27782f 100644 --- a/src/Service/BrkService.php +++ b/src/Service/BrkService.php @@ -500,7 +500,6 @@ public function mapOnroerendeZaken(array $snapshot): array if ($snapshot['Appartementsrecht']['hoofdsplitsing']['HoofdsplitsingRef']['#'] === null) { $percelen = $this->cacheService->searchObjects( - null, ['embedded.zakelijkGerechtigdeIdentificaties.hoofdsplitsing' => $splitsingId], [$ozSchema->getId()->toString()] )['results']; @@ -609,7 +608,7 @@ public function mapHoofdsplitsing(array $hoofdsplitsing): void } $vveId = $hoofdsplitsing['heeftVerenigingVanEigenaren']['NietNatuurlijkPersoonRef']['#']; - $vves = $this->cacheService->searchObjects(null, ['identificatie' => $vveId], [$nnpSchema->getId()->toString()])['results']; + $vves = $this->cacheService->searchObjects(['identificatie' => $vveId], [$nnpSchema->getId()->toString()])['results']; if (count($vves) === 0) { return; @@ -618,7 +617,6 @@ public function mapHoofdsplitsing(array $hoofdsplitsing): void $vve = $vves[0]['_self']['id']; $results = $this->cacheService->searchObjects( - null, ['embedded.zakelijkGerechtigdeIdentificaties.hoofdsplitsing' => $splitsingId], [$ozSchema->getId()->toString()] )['results']; @@ -859,7 +857,6 @@ public function brkHandler(array $data, array $configuration): array foreach ($fileDataSet['stand']['KadastraalObjectSnapshot'] as $object) { $snapshots = $this->cacheService->searchObjects( - null, ['referentie' => $object['referentie']], [$this->configuration['schema']->getId()->toString()] )['results']; @@ -1035,7 +1032,7 @@ private function handleRefObject(Entity $schema, array $refObject): ObjectEntity ]; } - $oldArray = $this->cacheService->searchObjects(null, ['identificatie' => $refObject['identificatie']], [$schema->getId()->toString()])['results']; + $oldArray = $this->cacheService->searchObjects(['identificatie' => $refObject['identificatie']], [$schema->getId()->toString()])['results']; // $synchronization = $this->syncService->findSyncBySource( // $this->configuration['source'], diff --git a/src/Service/GdsService.php b/src/Service/GdsService.php index ac977ad..2c965dd 100644 --- a/src/Service/GdsService.php +++ b/src/Service/GdsService.php @@ -284,7 +284,6 @@ public function createSnapShots(array $file): array foreach ($snapshotsToMap as $snapshot) { $snapshots = $this->cacheService->searchObjects( - null, ['referentie' => $snapshot['referentie']], [$snapshotSchema->getId()->toString()] )['results'];