From a03cc11b6ee742fb2193070e5583c3053b1d020e Mon Sep 17 00:00:00 2001 From: Hans Tuscher Date: Fri, 22 Dec 2023 07:25:20 +0000 Subject: [PATCH] add missing properties --- src/Data/Schema/Property.php | 9 +++++++++ src/Service/Struct/SyncOperator.php | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/src/Data/Schema/Property.php b/src/Data/Schema/Property.php index 83b2460f..2830b09c 100644 --- a/src/Data/Schema/Property.php +++ b/src/Data/Schema/Property.php @@ -16,6 +16,12 @@ class Property extends Struct public ?string $relation; + public ?string $reference; + + public ?string $mapping; + + public ?string $local; + public ?string $localField; public ?string $referenceField; @@ -35,9 +41,12 @@ public function __construct( $this->type = $type; $this->flags = $flags; $this->relation = $properties['relation'] ?? null; + $this->local = $properties['local'] ?? null; $this->localField = $properties['localField'] ?? null; + $this->reference = $properties['reference'] ?? null; $this->referenceField = $properties['referenceField'] ?? null; $this->entity = $properties['entity'] ?? null; + $this->mapping = $properties['mapping'] ?? null; $this->properties = $properties['properties'] ?? null; $this->name = $name; } diff --git a/src/Service/Struct/SyncOperator.php b/src/Service/Struct/SyncOperator.php index 6a9bfd2c..d945ab7a 100644 --- a/src/Service/Struct/SyncOperator.php +++ b/src/Service/Struct/SyncOperator.php @@ -28,6 +28,11 @@ public function __construct(string $entity, string $action, array $payload) $this->payload = $payload; } + public function getEntity(): string + { + return $this->entity; + } + public function addPayload(array $item): void { $this->payload[] = $item;