wolfpack-it / yii2-active-record-soft-delete
Yii2 Active Record - Soft delete
Installs: 1 181
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=7.1.0
- yiisoft/yii2: ~2.0.19
This package is auto-updated.
Last update: 2024-10-23 05:55:50 UTC
README
This extension provides Soft delete integration for the Active Record of Yii2 Framework.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require wolfpack-it/yii2-active-record-soft-delete
or add
"wolfpack-it/yii2-active-record-soft-delete": "^<latest version>"
to the require
section of your composer.json
file.
Configuration
In a Active Record:
class ActiveRecordClass extends \yii\db\ActiveRecord { use \WolfpackIT\softDelete\traits\SoftDelete; }
TODO
- Add tests
Credits
License
The MIT License (MIT). Please see LICENSE for more information.