Method | Description | |
---|---|---|
deleteAll ( $conditions ) : integer | Soft deletes all records matching $conditions. | |
getSoftDeleteField ( ) : string | Get the configured deletion field | |
hardDelete ( Cake\Datasource\EntityInterface $entity ) : boolean | Hard deletes the given $entity. | |
hardDeleteAll ( Datetime $until ) : integer | Hard deletes all records that were soft deleted before a given date. | |
query ( ) | ||
restore ( Cake\Datasource\EntityInterface $entity ) : boolean | Restore a soft deleted entity into an active state. |
Method | Description | |
---|---|---|
_processDelete ( Cake\DataSource\EntityInterface $entity, ArrayObject $options ) : boolean | Perform the delete operation. |
protected _processDelete ( Cake\DataSource\EntityInterface $entity, ArrayObject $options ) : boolean | ||
$entity | Cake\DataSource\EntityInterface | The entity to soft delete. |
$options | ArrayObject | The options for the delete. |
return | boolean | success |
public getSoftDeleteField ( ) : string | ||
return | string |
public hardDelete ( Cake\Datasource\EntityInterface $entity ) : boolean | ||
$entity | Cake\Datasource\EntityInterface | |
return | boolean | true in case of success, false otherwise. |
public hardDeleteAll ( Datetime $until ) : integer | ||
$until | Datetime | Date until which soft deleted records must be hard deleted. |
return | integer | number of affected rows. |