DataMapper ORM


Validate

Validate is automatically run on every save() call, so long as you don't provide any parameters (such as saving a relationship). This allows your data to automatically have your predefined pre-processing and prepping validation rules applied. Read the Get and Save topics for more information.

You can also force DataMapper to skip validation on a save by calling skip_validation just before calling save.