Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdHoadon()
 {
     return $this->hasOne(Hoadon::className(), ['id_hoadon' => 'id_hoadon']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getHoadon()
 {
     return $this->hasOne(Hoadon::className(), ['hoadon_id' => 'hoadon_id']);
 }
Exemple #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getHoadons()
 {
     return $this->hasMany(Hoadon::className(), ['khachhang_id' => 'khachhang_id']);
 }