Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #68 from cincodenada/patch-1

Fix errors when using provided exists() code for SoftDelete
  • Loading branch information...
commit 1490ddea05e07d7a1cb7cda195a8bfa47465ac97 2 parents f431bf0 + f113eab
@dogmatic69 dogmatic69 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1 
2 
@@ -77,7 +77,7 @@ The SoftDelete behavior allows you to keep records on database and do not show t
Since "exists" method in Model disable callbacks you may experience problems using it. To avoid these problems you can use the "existsAndNotDeleted" method from the behavior and we provide the following code to be put into AppModel to make this transparent:
- public function exists($id) {
+ public function exists($id = null) {
if ($this->Behaviors->attached('SoftDelete')) {
return $this->existsAndNotDeleted($id);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.