3dde027c
曹明
1.厂商列表功能实现
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
namespace domain\manufacturer\models;
use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;
class Manufacturer extends ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%manufacture}}';
}
/**
* @return array
*/
public function behaviors()
{
return [
'time' => [
'class' => TimestampBehavior::className(),
'createdAtAttribute' => 'created_at',
'updatedAtAttribute' => 'updated_at',
]
];
}
}
|