FirebaseExtended / firestoreodm-flutter

BSD 3-Clause "New" or "Revised" License
35 stars 11 forks source link

[cloud_firestore_odm] Have an error if the @Collection is in a different file from the model #26

Open TarekkMA opened 3 months ago

TarekkMA commented 3 months ago

Moved from: https://github.com/firebase/flutterfire/issues/11236

Related to https://github.com/firebase/flutterfire/issues/11228

Currently, if the model & collection reference are in different files, we'll get a compilation error. This is a known limitation, but we are lacking a nice error message to catch this early on. At the moment, folks would have to find it the hard way, by having a compilation error in the generated code and googling why that is the case.

diegogarciar commented 3 months ago

also related to #2