Property | Type | Description | |
---|---|---|---|
$insert | An array with all fields where the timestamp should be applied to on insert. | ||
$update | An array with all fields where the timestamp should be applied to on update. |
Method | Description | |
---|---|---|
beforeInsert ( |
Insert the timestamp for all provided fields. | |
beforeUpdate ( |
Update the timestamp for all provided fields. | |
events ( ) | Register event handlers before insert and update. |
public beforeInsert ( |
||
$event | Event object from Active Record. |
public beforeUpdate ( |
||
$event | Event object from Active Record. |
public $insert |