From 33b4e9a4a6c29f6bb7e108e134b283d585955789 Mon Sep 17 00:00:00 2001 From: fogelito Date: Thu, 28 Dec 2023 13:12:26 +0200 Subject: [PATCH] Structure.php --- src/Database/Validator/Structure.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Database/Validator/Structure.php b/src/Database/Validator/Structure.php index 14223b1a5..9ea6d13b2 100644 --- a/src/Database/Validator/Structure.php +++ b/src/Database/Validator/Structure.php @@ -244,6 +244,10 @@ public function isValid($document): bool continue; } + if($type === Database::VAR_RELATIONSHIP) { + continue; + } + switch ($type) { case Database::VAR_STRING: $size = $attribute['size'] ?? 0; @@ -266,8 +270,6 @@ public function isValid($document): bool $validator = new DatetimeValidator(); break; - case Database::VAR_RELATIONSHIP: - return true; default: $this->message = 'Unknown attribute type "'.$type.'"'; return false;