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

Relations fetched breaks upon parse() call #377

Closed
rickharrison opened this issue Jun 4, 2014 · 1 comment
Closed

Relations fetched breaks upon parse() call #377

rickharrison opened this issue Jun 4, 2014 · 1 comment

Comments

@rickharrison
Copy link

Currently, all of my column names are stored in the database as underscore_names. I am using format and parse to translate that into camelCase. However, when I am trying to fetch relations, it does not work if a parse call is defined. It seems that the model is fetched, but unable to be re-associated with the parent model after parse is called.

https://gist.github.com/rickharrison/51dd8dbdcab1cf459372

However, if I add a line to parse to not change any key with _id in it, everything works as expected.

@rickharrison rickharrison changed the title Relationed fetched breaks upon parse() call Relations fetched breaks upon parse() call Jun 4, 2014
@seidtgeist
Copy link

@tgriesser Thanks for fixing this! It looks like the same issue I had a while ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants