-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
_internalModel is undefined on 'init' of a record. #3255
Comments
It's because the model receive it's internalModel after its creation (and obviously after the init method): https://github.com/emberjs/data/blob/master/packages/ember-data/lib/system/model/internal-model.js#L117 setting this internalModel inside the _createCall should do the trick, but I'm almost sure there was a good reason not to do it. (even if the tests pass) |
@martndemus what is your use case for creating records using |
@bmac It's just as simple demonstration, I don't actually use (So my case is that |
@bmac It seems fair for me as a user to be able to do some things |
Seems fair. @igorT how do you feel about the idea of passing |
We should have a separate hook as to not to have to guarantee ordering, but @bmac that solution seems ok for now |
@martndemus We have release Ember Data v1.0.0-beta19.1 with a fix for this issue: http://emberjs.com/blog/2015/06/09/ember-data-1-0-beta-19-1-released.html |
Testcase: http://jsbin.com/cegapapigo/2/edit?html,css,js,output
The text was updated successfully, but these errors were encountered: