SelectQuery
extends SelectQuery
in package
Soft delete-aware query
Table of Contents
Methods
- triggerBeforeFind() : void
- Overwriting triggerBeforeFind() to let queries not return soft deleted records
Methods
triggerBeforeFind()
Overwriting triggerBeforeFind() to let queries not return soft deleted records
public
triggerBeforeFind() : void
Cake\ORM\Query::triggerBeforeFind() overwritten to add the condition deleted IS NULL
to every find request
in order to not return soft deleted records.
If the query contains the option withDeleted
, the condition deleted IS NULL
is not applied.