50], [['remark'], 'string', 'max' => 500], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'car_id' => 'Car ID', 'user_id' => 'User ID', 'pdate' => 'Pdate', 'ptime' => 'Ptime', 'ptype' => 'Ptype', 'remark' => 'Remark', 'is_first' => 'Is First', 'business_group_id' => 'Business Group Id', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } public function getCar() { return $this->hasOne(CarT::className(),['id'=>'car_id']); } public function getUser() { return $this->hasOne(UserT::className(),['id'=>'user_id']); } public function getBusinessGroup() { return $this->hasOne(BusinessGroupT::className(), ['id' => 'business_group_id']); } }