Results (
Thai) 1:
[Copy]Copied!
We also make use of the unset() method, which removes an attribute by deleting itfrom the internal model attribute’s hash.Validation functions can be as simple or complex as necessary. If the attributes providedare valid, nothing should be returned from .validate(). If they are invalid, an errorvalue should be returned instead.Should an error be returned:• An invalid event will be triggered, setting the validationError property on themodel with the value that is returned by this method.• .save() will not continue and the attributes of the model will not be modified onthe server.
Being translated, please wait..
