Methods
-
start( data )
-
Description
Called at route startParameters
Name Type Description dataobject Name Type Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject Database transaction. Use this transaction in your hooks. Commit and rollback are handled through res.success() / res.error() idEntitynumber Id of entity to update Details
-
beforeUpdate( data )
-
Description
Called before entity update in databaseParameters
Name Type Description dataobject Name Type Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject Database transaction. Use this transaction in your hooks. Commit and rollback are handled through res.success() / res.error() updateObjectobject Parsed form values used to update row in database updateAssociationsArray.<CoreEntity.associationObject> Associations array filesArray.<CoreEntity.fileObject> Array of files parsed from body Details
-
beforeRedirect( data )
-
Description
Called before redirecting to data.redirectParameters
Name Type Description dataobject Name Type Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject Database transaction. Use this transaction in your hooks. Commit and rollback are handled through res.success() / res.error() updateObjectobject Parsed form values used to update row in database updateAssociationsArray.<CoreEntity.associationObject> Associations array filesArray.<CoreEntity.fileObject> Array of files parsed from body Details