@@ -1411,6 +1411,7 @@ public function createCollection(string $id, array $attributes = [], array $inde
14111411 $ this ->adapter ->getSupportForSpatialAttributes (),
14121412 $ this ->adapter ->getSupportForSpatialIndexNull (),
14131413 $ this ->adapter ->getSupportForSpatialIndexOrder (),
1414+ $ this ->adapter ->getSupportForAttributes ()
14141415 );
14151416 foreach ($ indexes as $ index ) {
14161417 if (!$ validator ->isValid ($ index )) {
@@ -2420,6 +2421,7 @@ public function updateAttribute(string $collection, string $id, ?string $type =
24202421 $ this ->adapter ->getSupportForSpatialAttributes (),
24212422 $ this ->adapter ->getSupportForSpatialIndexNull (),
24222423 $ this ->adapter ->getSupportForSpatialIndexOrder (),
2424+ $ this ->adapter ->getSupportForAttributes ()
24232425 );
24242426
24252427 foreach ($ indexes as $ index ) {
@@ -3363,6 +3365,7 @@ public function createIndex(string $collection, string $id, string $type, array
33633365 $ this ->adapter ->getSupportForSpatialAttributes (),
33643366 $ this ->adapter ->getSupportForSpatialIndexNull (),
33653367 $ this ->adapter ->getSupportForSpatialIndexOrder (),
3368+ $ this ->adapter ->getSupportForAttributes ()
33663369 );
33673370 if (!$ validator ->isValid ($ index )) {
33683371 throw new IndexException ($ validator ->getDescription ());
@@ -3906,6 +3909,7 @@ public function createDocument(string $collection, Document $document): Document
39063909 $ this ->adapter ->getIdAttributeType (),
39073910 $ this ->adapter ->getMinDateTime (),
39083911 $ this ->adapter ->getMaxDateTime (),
3912+ $ this ->adapter ->getSupportForAttributes ()
39093913 );
39103914 if (!$ structure ->isValid ($ document )) {
39113915 throw new StructureException ($ structure ->getDescription ());
@@ -4006,6 +4010,7 @@ public function createDocuments(
40064010 $ this ->adapter ->getIdAttributeType (),
40074011 $ this ->adapter ->getMinDateTime (),
40084012 $ this ->adapter ->getMaxDateTime (),
4013+ $ this ->adapter ->getSupportForAttributes ()
40094014 );
40104015 if (!$ validator ->isValid ($ document )) {
40114016 throw new StructureException ($ validator ->getDescription ());
@@ -4559,6 +4564,7 @@ public function updateDocument(string $collection, string $id, Document $documen
45594564 $ this ->adapter ->getIdAttributeType (),
45604565 $ this ->adapter ->getMinDateTime (),
45614566 $ this ->adapter ->getMaxDateTime (),
4567+ $ this ->adapter ->getSupportForAttributes ()
45624568 );
45634569 if (!$ structureValidator ->isValid ($ document )) { // Make sure updated structure still apply collection rules (if any)
45644570 throw new StructureException ($ structureValidator ->getDescription ());
@@ -4693,6 +4699,7 @@ public function updateDocuments(
46934699 $ this ->adapter ->getIdAttributeType (),
46944700 $ this ->adapter ->getMinDateTime (),
46954701 $ this ->adapter ->getMaxDateTime (),
4702+ $ this ->adapter ->getSupportForAttributes ()
46964703 );
46974704
46984705 if (!$ validator ->isValid ($ updates )) {
@@ -5404,6 +5411,7 @@ public function upsertDocumentsWithIncrease(
54045411 $ this ->adapter ->getIdAttributeType (),
54055412 $ this ->adapter ->getMinDateTime (),
54065413 $ this ->adapter ->getMaxDateTime (),
5414+ $ this ->adapter ->getSupportForAttributes ()
54075415 );
54085416
54095417 if (!$ validator ->isValid ($ document )) {
@@ -6397,6 +6405,7 @@ public function find(string $collection, array $queries = [], string $forPermiss
63976405 $ this ->maxQueryValues ,
63986406 $ this ->adapter ->getMinDateTime (),
63996407 $ this ->adapter ->getMaxDateTime (),
6408+ $ this ->adapter ->getSupportForAttributes ()
64006409 );
64016410 if (!$ validator ->isValid ($ queries )) {
64026411 throw new QueryException ($ validator ->getDescription ());
0 commit comments