ahsankhatri / firestore-php

Firestore PHP Client (without gRPC extension)
MIT License
62 stars 57 forks source link

Does not handle native nested arrays (payload is empty / deleted) #37

Open wire67 opened 3 years ago

wire67 commented 3 years ago
      $val = [
         'timestamp' => new FirestoreTimestamp,
         'a' => ['b'=>['c'=>'test']],
      ];
      $ret = $firestoreClient->updateDocument($path, $val);

Unable to handle nested native arrays. This code will fail, and add no fields to the document, if the given fields are present they will be deleted, there is no exception raised, payload will just be empty.