$settings
$settings : array
ビヘイビアの設定
OriginalKey Behavior
beforeSave(\Model $model, array $options = array()) : mixed
beforeSave is called before a model is saved. Returning false from a beforeSave callback will abort the save operation.
\Model | $model | Model using this behavior |
array | $options | Options passed from Model::save(). |
False if the operation should abort. Any other result will continue.
afterSave(\Model $model, boolean $created, array $options = array()) : boolean
afterSave is called after a model is saved.
\Model | $model | Model using this behavior |
boolean | $created | True if this save created a new record |
array | $options | Options passed from Model::save(). |