Reputation: 1579
What is the difference between:
.Save();
.Add();
.Update():
Upvotes: 3
Views: 2326
Reputation: 78152
You don't mention which templates you're using (I'm going to assume ActiveRecord), but as a general rule:
IsNew==true
or otherwise it will
update.IsNew==false
and will fail if
there is no corresponding record in
the db for the instance.Upvotes: 10