PHP Class SoftDelete\ORM\Query

Inheritance: extends Cake\ORM\Query
Datei anzeigen Open project: pgbi/cakephp3-soft-delete

Public Methods

Method Description
triggerBeforeFind ( ) : void Overwriting triggerBeforeFind() to let queries not return soft deleted records

Method Details

triggerBeforeFind() public method

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.
public triggerBeforeFind ( ) : void
return void