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

Add a refresh method to entities #6

Closed
wants to merge 1 commit into from
Closed

Add a refresh method to entities #6

wants to merge 1 commit into from

Conversation

jubianchi
Copy link
Contributor

No description provided.

@jubianchi
Copy link
Contributor Author

As I said before, this method is useful to hydrate entities wich are embedded but sent as summary. With this method, OREM will load the full entity from its URL retrieving all its properties.

@youknowriad
Copy link
Owner

In this case it's better to provide this method in the manager instead by passing the object, this will garantee it to work even if it's not a entity that extend the base Entity class. And it must check that the entity is in the store before making the refresh to avoid loading a new entity in the store outside of the standard workflow (find or persist).

@youknowriad
Copy link
Owner

close for now, may be not necessary

@youknowriad youknowriad closed this Jul 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants