PHP Class SoftDelete\ORM\Query

Inheritance: extends Cake\ORM\Query
Afficher le fichier Open project: pgbi/cakephp3-soft-delete

Méthodes publiques

Méthode Description
triggerBeforeFind ( ) : void Overwriting triggerBeforeFind() to let queries not return soft deleted records

Method Details

triggerBeforeFind() public méthode

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
Résultat void