wolfpack-it/yii2-active-record-soft-delete

Yii2 Active Record - Soft delete

v1.2.0 2020-03-22 19:02 UTC

This package is auto-updated.

Last update: 2024-11-23 06:11:14 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.