/** * 获取自费项目 * @return \yii\db\ActiveQuery */ public function getChargeables() { return $this->hasMany(Chargeable::className(), ['contr_id' => 'contr_id']); }