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
c6da6943
Commit
c6da6943
authored
Oct 04, 2016
by
cornernote
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
f09c0a38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
SoftDeleteQueryBehavior.php
src/SoftDeleteQueryBehavior.php
+2
-4
No files found.
src/SoftDeleteQueryBehavior.php
View file @
c6da6943
...
...
@@ -44,8 +44,7 @@ class SoftDeleteQueryBehavior extends Behavior
/** @var ActiveRecord $modelClass */
$modelClass
=
$this
->
owner
->
modelClass
;
$tableName
=
$modelClass
::
tableName
();
return
$this
->
owner
->
andWhere
(
$tableName
.
'.'
.
$this
->
attribute
.
' IS NOT NULL'
);
return
$this
->
owner
->
andWhere
(
$tableName
.
'.'
.
$this
->
attribute
.
' IS NOT NULL'
);
}
/**
...
...
@@ -56,7 +55,6 @@ class SoftDeleteQueryBehavior extends Behavior
/** @var ActiveRecord $modelClass */
$modelClass
=
$this
->
owner
->
modelClass
;
$tableName
=
$modelClass
::
tableName
();
return
$this
->
owner
->
andWhere
(
$tableName
.
'.'
.
$this
->
attribute
.
' IS NULL'
);
return
$this
->
owner
->
andWhere
(
$tableName
.
'.'
.
$this
->
attribute
.
' IS NULL'
);
}
}
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