Commit 38b59fcb authored by Brett O'Donnell's avatar Brett O'Donnell

Merge pull request #1 from davidjeddy/patch-1

Update README.md
parents 747fece2 8483143a
...@@ -36,10 +36,10 @@ In your ActiveRecord class: ...@@ -36,10 +36,10 @@ In your ActiveRecord class:
```php ```php
public function behaviors() { public function behaviors() {
return [ return [
\cornernote\behaviors\SoftDeleteBehavior::className(), \cornernote\softdelete\SoftDeleteBehavior::className(),
// or // or
[ [
'class' => \cornernote\behaviors\SoftDeleteBehavior::className(), 'class' => \cornernote\softdelete\SoftDeleteBehavior::className(),
'attribute' => 'deleted_time', 'attribute' => 'deleted_time',
'value' => new \yii\db\Expression('NOW()'), // for sqlite use - new \yii\db\Expression("date('now')") 'value' => new \yii\db\Expression('NOW()'), // for sqlite use - new \yii\db\Expression("date('now')")
], ],
...@@ -52,10 +52,10 @@ In your ActiveQuery class: ...@@ -52,10 +52,10 @@ In your ActiveQuery class:
```php ```php
public function behaviors() { public function behaviors() {
return [ return [
\cornernote\behaviors\SoftDeleteQueryBehavior::className(), \cornernote\softdelete\SoftDeleteQueryBehavior::className(),
// or // or
[ [
'class' => \cornernote\behaviors\SoftDeleteQueryBehavior::className(), 'class' => \cornernote\softdelete\SoftDeleteQueryBehavior::className(),
'attribute' => 'deleted_time', '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