You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jorge Reyes edited this page May 29, 2015
·
3 revisions
Get an entity using a primary key, if the id is not found this method returns null. You can also pass an id = 0 and the service will return to you a new entity.
###Returns
This function returns any
###Arguments
Key
Type
Required
Default
Description
entityName
string
Yes
---
id
any
Yes
---
returnNew
boolean
false
true
If id is 0 or empty and this is true, then a new entity is returned.