Updating Existing Entities
save
var user = getInstance( "User" ).find( 1 );
user.setPassword( "newpassword" );
user.save();update
var user = getInstance( "User" ).find( 1 );
user.update( {
email = "janedoe2@example.com",
password = "newpassword"
} );updateOrCreate
updateAll
fresh
refresh
Last updated
Was this helpful?