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;