octabytes / FireO

Google Cloud Firestore modern and simplest convenient ORM package in Python. FireO is specifically designed for the Google's Firestore
https://fireo.octabyte.io
Apache License 2.0
249 stars 29 forks source link

TypedModel reference fields don't work #222

Open bschreck opened 8 months ago

bschreck commented 8 months ago

I created a Scene(TypedModel) and Video(TypedModel), where Scene includes a reference to Video (video: Video). Creating a scene using Scene(video=video, **other_kwargs).save() does not associate the video with the scene. Doing scene.video results in a blank video containing none of the attributes of the passed in video instance, and doing Scene.collection.filter(video=video).fetch() results in an empty list

bschreck commented 8 months ago

Note that using Model instead of TypedModel works fine

ADR-007 commented 8 months ago

Note that using Model instead of TypedModel works fine

Hi! Could you please please show the field declaration for both Model and TypedModel?