/** * @return \yii\db\ActiveQuery */ public function getBranchOffices() { return $this->hasMany(BranchOffices::className(), ['id_prov' => 'id_prov']); }
/** * @return \yii\db\ActiveQuery */ public function getBO() { return $this->hasOne(BranchOffices::className(), ['BO_ID' => 'BO_ID']); }