/** * @return \yii\db\ActiveQuery */ public function getQuotationCreate() { return $this->hasOne(Tbuser::className(), ['user_id' => 'quotation_createid']); }
/** * @return \yii\db\ActiveQuery */ public function getPurchaseorderCreate() { return $this->hasOne(Tbuser::className(), ['user_id' => 'purchaseorder_createid']); }
/** * @return \yii\db\ActiveQuery */ public function getUser() { return $this->hasOne(Tbuser::className(), ['user_id' => 'user_id']); }