Commit 2d48edf1 authored by cornernote's avatar cornernote

cleanup

parent 3d48bcc2
...@@ -113,18 +113,4 @@ class SoftDeleteBehavior extends Behavior ...@@ -113,18 +113,4 @@ class SoftDeleteBehavior extends Behavior
} }
} }
public function deleteds()
{
$model = new $this->owner->modelClass();
$this->owner->andWhere($this->attribute . ' IS NULL');
return $this->owner;
}
public function undeleteds()
{
$model = new $this->owner->modelClass();
$this->owner->andWhere($this->attribute . ' IS NOT NULL');
return $this->owner;
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment