记录日志测试

This commit is contained in:
2024-12-04 09:50:26 +08:00
parent d025bdef3c
commit 2d9af1fa73

View File

@@ -7,16 +7,16 @@ use yii\db\ActiveRecord;
class OpLog extends \common\modelsgii\OpLog
{
public function behaviors()
{
return [
[
// public function behaviors()
// {
// return [
// [
// 'class' => TimestampBehavior::class,
// 'attributes' => [
// ActiveRecord::EVENT_BEFORE_INSERT => ['created_at','updated_at'],
// ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'],
// ],
],
];
}
// ],
// ];
// }
}