50], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'baofei' => 'Baofei', 'xianzhong_one' => 'Xianzhong One', 'xianzhong_two' => 'Xianzhong Two', 'car_type_id' => 'Car Type ID', 'car_use_id' => 'Car Use ID', 'type' => 'Type', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } public function getFanxian() { return $this->hasMany(ZhongjiFanxianT::className(),['tiaojian_id'=>'id']); } public function getTicheng() { return $this->hasMany(ZhongjiTichengT::className(),['tiaojian_id'=>'id']); } }