Model Configuration Validation Functions void model
Validates that the specified property exists and that its value is not blank.
|properties||string||No||Name of property or list of property names to validate against (can also be called with the
|message||string||No||[property] can't be empty||Supply a custom error message here to override the built-in one.|
|condition||string||No||String expression to be evaluated that decides if validation will be run (if the expression returns
|unless||string||No||String expression to be evaluated that decides if validation will be run (if the expression returns
// Make sure that the user data can not be saved to the database without the `emailAddress` property. (It must exist and not be an empty string) validatesPresenceOf("emailAddress");