Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert that type is found when doing store.push #3542

Closed
wecc opened this issue Jul 13, 2015 · 1 comment
Closed

Assert that type is found when doing store.push #3542

wecc opened this issue Jul 13, 2015 · 1 comment

Comments

@wecc
Copy link
Contributor

wecc commented Jul 13, 2015

We should add an assert in store._pushInternalModel checking that type is found.

@Serabe
Copy link
Member

Serabe commented Jul 13, 2015

store.modelFor raises an Ember.Error if no model could be found. What is the difference? Should the assert be in store.modelFor?

Serabe added a commit to Serabe/data that referenced this issue Jul 13, 2015
When pushing data with an unknown type, an error is raised.
Fix emberjs#3542
Serabe added a commit to Serabe/data that referenced this issue Jul 14, 2015
When pushing data with an unknown type, an error is raised.
Fix emberjs#3542
Serabe added a commit to Serabe/data that referenced this issue Jul 14, 2015
…wn type

When pushing data with an unknown type, an error is raised.
Fix emberjs#3542
bmac pushed a commit that referenced this issue Jul 17, 2015
…wn type

When pushing data with an unknown type, an error is raised.
Fix #3542

(cherry picked from commit c35bb68)

Conflicts:
	packages/ember-data/lib/system/store.js
jcope2013 pushed a commit to jcope2013/data that referenced this issue Aug 3, 2015
…wn type

When pushing data with an unknown type, an error is raised.
Fix emberjs#3542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants