22 lines
533 B
PHP
22 lines
533 B
PHP
<?php
|
|
|
|
namespace common\models;
|
|
|
|
use yii\behaviors\TimestampBehavior;
|
|
use yii\db\ActiveRecord;
|
|
|
|
class OpLog extends \common\modelsgii\OpLog
|
|
{
|
|
// public function behaviors()
|
|
// {
|
|
// return [
|
|
// [
|
|
// 'class' => TimestampBehavior::class,
|
|
// 'attributes' => [
|
|
// ActiveRecord::EVENT_BEFORE_INSERT => ['created_at','updated_at'],
|
|
// ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'],
|
|
// ],
|
|
// ],
|
|
// ];
|
|
// }
|
|
} |