isNew
function
Returns if this instance has not been persisted.
connection.isNew(instance)
Checks that the instance has an id.
Parameters
- instance
{Object}:The instance to test.
Returns
{Boolean}:
true if the instance has not been persisted.