<?php namespace common\models; use Yii; /** * This is the model class for table "fix_car_tuoche". * * @property integer $id * @property string $name * @property string $created_at * @property string $updated_at * * @property FixCarReport[] $fixCarReports */ class FixCarTuoche extends \common\models\Base { /** * @inheritdoc */ public static function tableName() { return 'fix_car_tuoche'; } /** * @inheritdoc */ public function rules() { return [ [['created_at', 'updated_at'], 'safe'], [['name'], 'string', 'max' => 100], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } /** * @return \yii\db\ActiveQuery */ public function getFixCarReports() { return $this->hasMany(FixCarReport::className(), ['tuoche' => 'id']); } }