Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yii2-softdelete
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
digisin
yii2-softdelete
Commits
2d48edf1
Commit
2d48edf1
authored
May 30, 2015
by
cornernote
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
3d48bcc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
SoftDeleteBehavior.php
behaviors/SoftDeleteBehavior.php
+0
-15
No files found.
behaviors/SoftDeleteBehavior.php
View file @
2d48edf1
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment