27 lines
616 B
PHP
27 lines
616 B
PHP
<?php
|
|
/*
|
|
* @author: liudiao1992
|
|
* @Date: 2023-09-18 15:29:29
|
|
* @Description:
|
|
*/
|
|
|
|
namespace common\models\oldDb;
|
|
|
|
use yii\behaviors\TimestampBehavior;
|
|
use yii\db\ActiveRecord;
|
|
|
|
class PackageMethod extends \common\modelsgii\oldDb\PackageMethod
|
|
{
|
|
public function behaviors()
|
|
{
|
|
return [
|
|
[
|
|
'class' => TimestampBehavior::class,
|
|
'attributes' => [
|
|
ActiveRecord::EVENT_BEFORE_INSERT => ['created_at','updated_at'],
|
|
ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'],
|
|
],
|
|
],
|
|
];
|
|
}
|
|
} |