How Do You include softdeleted data in unique validations? is there any better way todo it?
What kind of soft delete feature are you using? Are you using GitHub - UseMuffin/Trash: Adds soft-delete support to CakePHP ORM.?
CakePHP itself doesn’t have a soft delete feature in the core, so we need a bit more info on what you currently have.