Trait TrashableTrait
Uswe this trait to make model trashable
Methods summary
public
boolean
|
#
trash( boolean $runValidation = true )
Move to trash. Validation will be performed
before trashing with trash (TrashInterface::ScenarioTrash) scenario.
Move to trash. Validation will be performed
before trashing with trash (TrashInterface::ScenarioTrash) scenario.
Parameters
- $runValidation
whether to perform validation before saving the record.
If the validation fails, the record will not be saved to database.
Returns
boolean
See
TrashInterface::ScenarioTrash
Ignored
|
public
boolean
|
#
restore( )
Restore trashed item
Returns
boolean
Throws
Exception
Ignored
|
abstract public
|
|