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

Better handling of populated fields #3

Open
FloGou opened this issue Jan 14, 2016 · 0 comments
Open

Better handling of populated fields #3

FloGou opened this issue Jan 14, 2016 · 0 comments

Comments

@FloGou
Copy link
Contributor

FloGou commented Jan 14, 2016

When an object is saved, we try to update it with the values returned by the query. Unfortunately, this query doesn't offer the opportunity to populate nested objects in the returned object (or so it seems).

Currently, you can pass an array of strings to the save method, and the ORM will GET the object again.

A better solution would be to maintain a _populate array on the object, and implement a refresh method.

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

1 participant