CarModel.php 686 Bytes
<?php

namespace domain\order\models;

use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;
use common\helpers\Utils;

/**
 * 汽车型号
 * This is the model class for table "{{%gk_car_model}}".
 */
class CarModel extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%gk_car_model}}';
    }

    /**
     * @return array
     */
    public function behaviors()
    {
        return [
            'time' => [
                'class' => TimestampBehavior::className(),
                'createdAtAttribute' => 'created_at',
                'updatedAtAttribute' => 'updated_at',
            ]
        ];
    }
}