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
3d48bcc2
Commit
3d48bcc2
authored
May 30, 2015
by
cornernote
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup docs
parent
de8013e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
SoftDeleteBehavior.php
behaviors/SoftDeleteBehavior.php
+2
-1
SoftDeleteQueryBehavior.php
behaviors/SoftDeleteQueryBehavior.php
+2
-2
No files found.
behaviors/SoftDeleteBehavior.php
View file @
3d48bcc2
...
@@ -14,7 +14,8 @@ use yii\db\Expression;
...
@@ -14,7 +14,8 @@ use yii\db\Expression;
* ```
* ```
* public function behaviors() {
* public function behaviors() {
* return [
* return [
* 'softDelete' => ['class' => 'cornernote\behaviors\SoftDeleteBehavior',
* 'softDelete' => [
* 'class' => 'cornernote\behaviors\SoftDeleteBehavior',
* 'attribute' => 'delete_time',
* 'attribute' => 'delete_time',
* 'value' => new Expression('NOW()'),
* 'value' => new Expression('NOW()'),
* ],
* ],
...
...
behaviors/SoftDeleteQueryBehavior.php
View file @
3d48bcc2
...
@@ -12,9 +12,9 @@ use yii\db\ActiveQuery;
...
@@ -12,9 +12,9 @@ use yii\db\ActiveQuery;
* ```
* ```
* public function behaviors() {
* public function behaviors() {
* return [
* return [
* 'softDelete' => ['class' => 'cornernote\behaviors\SoftDeleteBehavior',
* 'softDelete' => [
* 'class' => 'cornernote\behaviors\SoftDeleteQueryBehavior',
* 'attribute' => 'delete_time',
* 'attribute' => 'delete_time',
* 'value' => new Expression('NOW()'),
* ],
* ],
* ];
* ];
* }
* }
...
...
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