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