Overwriting triggerBeforeFind() to let queries not return soft deleted records
Method Details
triggerBeforeFind()
publicmethod
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.