public function getPut() { return $this->hasOne(\backend\models\DafSuboutput::className(), ['suboutput_id' => 'suboutput_id']); }
public function Out($id) { $gole = \backend\models\DafSuboutput::find()->where(['suboutput_id' => $id])->one(); return $gole->unit_id; }