Fix message

This commit is contained in:
fogelito
2026-01-12 15:10:52 +02:00
parent 38517b8004
commit 2f514ae55e
2 changed files with 4 additions and 3 deletions
@@ -78,8 +78,9 @@ class Base extends Types
$collection = $collections[$collection];
$this->collection = new Document();
$this->collection->setAttribute('$id', $collection['$id']);
$this->collection = new Document([
'$id' => $collection['$id'],
]);
foreach ($collection['attributes'] as $attribute) {
$attr = new Document([
@@ -92,7 +92,7 @@ class Types extends Validator
!empty($query->getAttribute()) &&
!in_array($query->getAttribute(), $this->allowedAttributes)
) {
throw new \Exception("Invalid query: Attribute not found in schema:{$query->getAttribute()}");
throw new \Exception("Invalid query: Attribute not found in schema: {$query->getAttribute()}");
}
}