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
bf68fcdb
Commit
bf68fcdb
authored
Mar 14, 2017
by
Nicola Tomassoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX readme
parent
bd95e51b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
README.md
README.md
+6
-6
No files found.
README.md
View file @
bf68fcdb
...
...
@@ -10,13 +10,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run
```
$ composer require
cornernote
/yii2-softdelete "*"
$ composer require
digisin
/yii2-softdelete "*"
```
or add
```
"
cornernote
/yii2-softdelete": "*"
"
digisin
/yii2-softdelete": "*"
```
to the
`require`
section of your
`composer.json`
file.
...
...
@@ -29,10 +29,10 @@ In your ActiveRecord class:
```
php
public
function
behaviors
()
{
return
[
\
cornernote
\softdelete\SoftDeleteBehavior
::
className
(),
\
digisin
\softdelete\SoftDeleteBehavior
::
className
(),
// or
[
'class'
=>
\
cornernote
\softdelete\SoftDeleteBehavior
::
className
(),
'class'
=>
\
digisin
\softdelete\SoftDeleteBehavior
::
className
(),
'attribute'
=>
'deleted_time'
,
'value'
=>
new
\yii\db\Expression
(
'NOW()'
),
// for sqlite use - new \yii\db\Expression("date('now')")
],
...
...
@@ -45,10 +45,10 @@ In your ActiveQuery class:
```
php
public
function
behaviors
()
{
return
[
\
cornernote
\softdelete\SoftDeleteQueryBehavior
::
className
(),
\
digisin
\softdelete\SoftDeleteQueryBehavior
::
className
(),
// or
[
'class'
=>
\
cornernote
\softdelete\SoftDeleteQueryBehavior
::
className
(),
'class'
=>
\
digisin
\softdelete\SoftDeleteQueryBehavior
::
className
(),
'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