Commit bf68fcdb authored by Nicola Tomassoni's avatar Nicola Tomassoni

FIX readme

parent bd95e51b
......@@ -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',
],
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment