trueif the object passes all validations and the object was saved to the database. Otherwise, it returns
update()method, like this:
update()as a struct. The main reason this method accepts a struct is to allow you to easily use it with forms.
keyargument, and it will update the corresponding record in your table with the properties you give it. You can pass in the properties either as named arguments or as a struct to the
update()method on it, thus invoking any callbacks and validations you have specified for the model. You can change this behavior by passing in
instantiate=false. Then it will just update the record from the table using a simple UPDATE query.
whereargument and tell Wheels what updates to make using named arguments for the properties.
whereargument is used exactly as you specify it in the
WHEREclause of the query (with the exception that Wheels automatically wraps everything properly in
cfqueryparamtags). So make sure that you place those commas and quotes correctly!