12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace huoAgentSwitch\model;
- use huo\model\common\CommonModel;
- use huo\model\game\GameModel;
- use huo\model\user\UserModel;
- class DgaSwitchModel extends CommonModel {
- protected $name = 'dga_switch';
-
- public function game() {
- return $this->belongsTo(GameModel::className(), 'app_id', 'id')->field('id,name');
- }
-
- public function agent() {
- return $this->belongsTo(UserModel::className(), 'agent_id', 'id')->field('id,user_login');
- }
- }
|