-
Notifications
You must be signed in to change notification settings - Fork 18
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
fragment error #15
Comments
Hello, and Happy New Year :)
You do not need to extends Copyable when you make a new Fragment :
If you need custom copy, redefine copy method like this :
see https://emberjs.com/api/ember/2.18/classes/Ember.Copyable and https://github.com/lytics/ember-data-model-fragments/blob/master/addon/fragment.js#L91 |
Hi,
can ember-data-copyable work with fragments? As soon as I make a fragment copyable the base model will not copy anymore
Fragment.extend(Copyable
.Assertion Failed: You can only assign
null
, an object literal or a 'dossier/consumer' fragment instance to this property"property is 'consumer'.
and value is an 'instance'
error comes from here : https://github.com/lytics/ember-data-model-fragments/blob/master/addon/attributes.js#L118
adding console.log(value) reveals two passing calls, and the last one fails, which looks different to me.
The text was updated successfully, but these errors were encountered: