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