ebryn / ember-model

A lightweight model library for Ember.js
MIT License
524 stars 159 forks source link

Compatibility with ember-data #420

Closed gonvaled closed 6 years ago

gonvaled commented 9 years ago

Is it possible to have ember-model alongside ember-data? I have been using ember-model in the past for some models, and ember-data for others, without issues, but starting with ember-model@0.0.13 (I think) there seem to be conflicts:

Uncaught Error: Assertion Failed: The initializer 'data-adapter' has already been registered
GavinJoyce commented 9 years ago

You'll need to rename store to something like ember-model-store, adapter to something like ember-model-adapter and model to something like ember-model-model to avoid container naming conflicts with ember-data.

I'll be likely kicking off a migration from Ember Model to Ember Data in the next few weeks and I'll submit a PR then if someone hasn't already. It should be pretty straightforward.

rrussell commented 9 years ago

Someone has migrated from Ember-Data to Ember-Model?

GavinJoyce commented 9 years ago

@rrussell I doubt it, we're going from ember-model to ember-data

rrussell commented 9 years ago

@GavinJoyce I started working a project with ember-data, but now the CTO wants change to ember-model. Why migrate to ember-data? Some strong reason or issue with ember-model?

spectras commented 9 years ago

Excellent question. I wonder what the status of ember-model is. I believe ember-data is still not very good right now. It's poorly documented, the source is full of todos and fixmes, which is pretty scary, and from what I have seen, it doesn't do much more than ember-model, yet it's 3 times bigger.

It would be great to have some input from ember-model maintainers.

GavinJoyce commented 6 years ago

It's now possible to use ember-model and ember-data side by side:

https://github.com/ebryn/ember-model/releases/tag/v2.18.0

brandonweiss commented 6 years ago

@GavinJoyce 😍