model.newInstance

Triggered in October\Rain\Database\Model.

Called when a new instance of a model is created

Example usage:

$model->bindEvent('model.newInstance', function (\October\Rain\Database\Model $newModel) use (\October\Rain\Database\Model $model) {
    // Transfer custom properties
    $newModel->isLocked = $model->isLocked;
});