FirebaseExtended / emberfire

The officially supported adapter for using Firebase with Ember
https://firebaseopensource.com/projects/firebaseextended/emberfire/
MIT License
684 stars 264 forks source link

Error: No model was was found for '[attribute]' #49

Closed JFickel closed 10 years ago

JFickel commented 10 years ago

I'm trying to figure out why my this.store.find('bracket', 'firebase_id').then(func...) is returning Error: No model was found for 'mode'. Mode is an attribute on my bracket model and I can see that it's saved correctly as "team" in my dashboard. I have no idea why it's trying to find a model for mode. It's set as a string attribute in my bracket model.

Just a heads up: I'm using a combination of activemodel adapters and firebase adapters. The tournament model is using an activemodel adapter (which is why I'm not using a simple belongsTo) and the bracket is using a firebase adapter.

Here's what my models look like: https://gist.github.com/JFickel/11130392

I'm pretty confused.

JFickel commented 10 years ago

It looks like I missed something pretty major. I didn't set my per-type serializers to FirebaseSerializer. You guys have that in your quick start guide on the firebase site. Maybe it's a good idea to include it in the readme here as well?

aputinski commented 10 years ago

@JFickel I'll definitely add this to the README. I removed it initially because I set the default serializer, but I need to mention the your use case.

Did setting the type serializer fix the issue?

JFickel commented 10 years ago

Yep, it's all good now. :)