Total Complexity | 9 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Query extends CakeQuery |
||
10 | { |
||
11 | /** |
||
12 | * Overwriting triggerBeforeFind() to let queries not return soft deleted records |
||
13 | * |
||
14 | * Cake\ORM\Query::triggerBeforeFind() overwritten to add the condition `deleted IS NULL` to every find request |
||
15 | * in order to not return soft deleted records. |
||
16 | * If the query contains the option `withDeleted`, the condition `deleted IS NULL` is not applied. |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | public function triggerBeforeFind() |
||
44 |