GameAgentModel.php 501 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * GameModel.php UTF-8
  4. * 游戏model
  5. *
  6. * @date : 2017/11/20 12:06
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : wuyonghong <wyh@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace huo\model\game;
  13. use huo\model\common\CommonModel;
  14. class GameAgentModel extends CommonModel {
  15. protected $name = 'agent_game';
  16. public function agent(){
  17. return $this->hasOne('huo\model\user\UserModel', 'id', 'agent_id');
  18. }
  19. }