Commit 3d48bcc2 authored by cornernote's avatar cornernote

cleanup docs

parent de8013e1
......@@ -14,7 +14,8 @@ use yii\db\Expression;
* ```
* public function behaviors() {
* return [
* 'softDelete' => ['class' => 'cornernote\behaviors\SoftDeleteBehavior',
* 'softDelete' => [
* 'class' => 'cornernote\behaviors\SoftDeleteBehavior',
* 'attribute' => 'delete_time',
* 'value' => new Expression('NOW()'),
* ],
......
......@@ -12,9 +12,9 @@ use yii\db\ActiveQuery;
* ```
* public function behaviors() {
* return [
* 'softDelete' => ['class' => 'cornernote\behaviors\SoftDeleteBehavior',
* 'softDelete' => [
* 'class' => 'cornernote\behaviors\SoftDeleteQueryBehavior',
* 'attribute' => 'delete_time',
* 'value' => new Expression('NOW()'),
* ],
* ];
* }
......
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