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
e5ee32e9
Commit
e5ee32e9
authored
Feb 03, 2015
by
Владимир Янц
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add usage in readme
parent
be132243
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
.gitignore
.gitignore
+28
-0
README.md
README.md
+32
-0
No files found.
.gitignore
0 → 100755
View file @
e5ee32e9
# phpstorm project files
.idea
# netbeans project files
nbproject
# zend studio for eclipse project files
.buildpath
.project
.settings
# windows thumbnail cache
Thumbs.db
# composer vendor dir
/vendor
# composer itself is not needed
composer.phar
composer.lock
# Mac DS_Store Files
.DS_Store
# phpunit itself is not needed
phpunit.phar
# local phpunit config
/phpunit.xml
README.md
View file @
e5ee32e9
...
@@ -5,3 +5,34 @@ Soft delete behavior for Yii2
...
@@ -5,3 +5,34 @@ Soft delete behavior for Yii2
Installation
Installation
------------
------------
The preferred way to install this extension is through
[
composer
](
http://getcomposer.org/download/
)
.
Either run
```
php composer.phar require --prefer-dist vyants/yii2-softdelete "*"
```
or add
```
"vyants/yii2-softdelete": "*"
```
to the require section of your
`composer.json`
file.
Usage
-----
```
public function behaviors() {
return [
'softDelete' => ['class' => 'vyants\softdelete\SoftDelete',
'statusAttribute' => 'status',
'timeAttribute' => false,
'deletedValue' => -1,
'activeValue' => 1,
],
];
}
```
\ 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