I am wondering how you go about automatically making the ORM ignore "is_deleted" fields.
I have a trait in a base model beforeCreate and beforeUpdate, there is no beforeSelect or beforeFind.
So I have this behavior implemented in my model:
$this->addBehavior(new SoftDelete([ 'field' => 'is_deleted', 'value' => 1 ]));
This works fine, but is there a way to exclude all soft-deleted items from every query? Must I make a custom behavior? If so does anyone have any pointers on how I can integrate that custom behavior with the ORM?