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
8483143a
Commit
8483143a
authored
Oct 13, 2015
by
David J Eddy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
747fece2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+4
-4
No files found.
README.md
View file @
8483143a
...
@@ -36,10 +36,10 @@ In your ActiveRecord class:
...
@@ -36,10 +36,10 @@ In your ActiveRecord class:
```
php
```
php
public
function
behaviors
()
{
public
function
behaviors
()
{
return
[
return
[
\cornernote\
behaviors
\SoftDeleteBehavior
::
className
(),
\cornernote\
softdelete
\SoftDeleteBehavior
::
className
(),
// or
// or
[
[
'class'
=>
\cornernote\
behaviors
\SoftDeleteBehavior
::
className
(),
'class'
=>
\cornernote\
softdelete
\SoftDeleteBehavior
::
className
(),
'attribute'
=>
'deleted_time'
,
'attribute'
=>
'deleted_time'
,
'value'
=>
new
\yii\db\Expression
(
'NOW()'
),
// for sqlite use - new \yii\db\Expression("date('now')")
'value'
=>
new
\yii\db\Expression
(
'NOW()'
),
// for sqlite use - new \yii\db\Expression("date('now')")
],
],
...
@@ -52,10 +52,10 @@ In your ActiveQuery class:
...
@@ -52,10 +52,10 @@ In your ActiveQuery class:
```
php
```
php
public
function
behaviors
()
{
public
function
behaviors
()
{
return
[
return
[
\cornernote\
behaviors
\SoftDeleteQueryBehavior
::
className
(),
\cornernote\
softdelete
\SoftDeleteQueryBehavior
::
className
(),
// or
// or
[
[
'class'
=>
\cornernote\
behaviors
\SoftDeleteQueryBehavior
::
className
(),
'class'
=>
\cornernote\
softdelete
\SoftDeleteQueryBehavior
::
className
(),
'attribute'
=>
'deleted_time'
,
'attribute'
=>
'deleted_time'
,
],
],
];
];
...
...
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