ahsankhatri / firestore-php

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

Allow storing associative arrays #9

Closed wz-gel closed 4 years ago

wz-gel commented 5 years ago

This PR fixes two issues:

  1. Properly treating objects as having keys and values instead of just values. Previously object's keys were lost when converting to FirestoreObject.

  2. Added additional check to see if the array is associative and then treat it as an object. This allows using associative arrays instead of objects.