Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 07, 2013
@cincodenada cincodenada Add a default value to the provided exists() code
If there is no default value, errors are thrown when code expecting to use the original exists() use it without a value.
Commits on Mar 27, 2013
@dogmatic69 dogmatic69 Merge pull request #68 from cincodenada/patch-1
Fix errors when using provided exists() code for SoftDelete
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 {

No commit comments for this range

Something went wrong with that request. Please try again.