Refresh the state of an entity or array of entities from the database
- This function returns back the BaseORMService (
this
)
Key | Type | Required | Default | Description |
---|---|---|---|---|
entity | any | Yes | --- |
var user = storage.getVar("UserSession");
ormService.refresh( user );
var users = [user1,user2,user3];
ormService.refresh( users );