firestore-php icon indicating copy to clipboard operation
firestore-php copied to clipboard

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

Open wire67 opened this issue 4 years ago • 0 comments

      $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.

wire67 avatar Sep 11 '21 07:09 wire67