RelationProxy.save

Updates the given record in the DB with all the current values.

Updates by ID. Assumes the record is already in the DB. Does not insert under any circumstance.

struct RelationProxy(T)
bool
save
()

Examples

User user = User.first;
user.posts = posts - 2;
user.save();

Meta