2017 © Pedro Peláez
 

yii2-behavior yii2-softdelete

Soft delete behavior for Yii2.

image

digisin/yii2-softdelete

Soft delete behavior for Yii2.

  • Tuesday, March 14, 2017
  • by nonzod
  • Repository
  • 1 Watchers
  • 0 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Yii2 Soft Delete

Soft delete behavior for Yii2., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

$ composer require digisin/yii2-softdelete "*"

or add, (*4)

"digisin/yii2-softdelete": "*"

to the require section of your composer.json file., (*5)

Usage

In your ActiveRecord class:, (*6)

public function behaviors() {
    return [
        \digisin\softdelete\SoftDeleteBehavior::className(),
        // or
        [
            'class' => \digisin\softdelete\SoftDeleteBehavior::className(),
            'attribute' => 'deleted_time',
            'value' => new \yii\db\Expression('NOW()'), // for sqlite use - new \yii\db\Expression("date('now')")
        ],
    ];
}

In your ActiveQuery class:, (*7)

public function behaviors() {
    return [
        \digisin\softdelete\SoftDeleteQueryBehavior::className(),
        // or
        [
            'class' => \digisin\softdelete\SoftDeleteQueryBehavior::className(),
            'attribute' => 'deleted_time',
        ],
    ];
}

The Versions

14/03 2017

dev-master

9999999-dev

Soft delete behavior for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 soft delete

14/03 2017

1.1.0

1.1.0.0

Soft delete behavior for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 soft delete

14/03 2017

1.0.3

1.0.3.0

Soft delete behavior for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 soft delete

21/02 2017

1.0.2

1.0.2.0

Soft delete behavior for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 soft delete

20/06 2015

1.0.1

1.0.1.0

Soft delete behavior for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Yants

yii2 soft delete

20/06 2015

1.0.0

1.0.0.0

Soft delete behavior for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Vladimir Yants

yii2 soft delete