[Top]
Fins
Fins.Model
Fins.Model.DataObject
|
Method Fins.Model.DataObject()->validate_on_create()
- Method
validate_on_create
-
void validate_on_create(mapping changes, Fins.Errors.Validation errors, .DataObjectInstance i)
- Description
-
validates the data being set for an object.
runs for atomic changes at object creation time. all applicable validation methods
will be called, and if any errors have been registered in the Fins.Errors.Validation
object, the error object will be thrown.
- Parameter changes
-
a mapping containing the field-value pairs changed.
- Parameter errors
-
a Fins.Errors.Validation object that can be used to aggregate error messages
by using the add() method.
- Parameter i
-
the DataInstanceObject being created or updated.
|