-
Notifications
You must be signed in to change notification settings - Fork 33
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
Reserved model attribute names #32
Comments
I can confirm there are some reserved attribute names. Off the top of my head they would be: I will definitely document all of these and will leave this open to address that. |
I don't want to complain, I think epf is a great library. But it would be neat if I know Ember Data switched from |
I'd agree with @sandstrom. This is trivial to workaround by just mapping the attributes on the adapter but I think it will likely trip up a lot of new users. |
I also agree with @sandstrom. Would to use my |
Hi Gordon
It seems that Epf have some reserved attribute names used internally on Ep.Model.
For example, while migrating from Ember Data, I have a model with an attribute 'type'. It causes a "Call to underscore on 'undefined' " error, and take me a few minutes to figure it out. I have just renamed my attribute to something else than 'type', and all turns good.
Could you confirm that, and eventually document those reserved words ? I think about 'id', 'clientId', 'type', 'session', etc.
Cheers
Rémy
The text was updated successfully, but these errors were encountered: