You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WorkWelcomeRelation.php 483B

2 years ago
123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\model\work;
  3. use crmeb\basic\BaseModel;
  4. use crmeb\traits\ModelTrait;
  5. /**
  6. * Class WorkWelcomeRelation
  7. * @package app\model\work
  8. */
  9. class WorkWelcomeRelation extends BaseModel
  10. {
  11. use ModelTrait;
  12. /**
  13. * @var string
  14. */
  15. protected $name = 'work_welcome_relation';
  16. /**
  17. * @var string
  18. */
  19. protected $key = 'id';
  20. public function member()
  21. {
  22. return $this->hasOne(WorkMember::class, 'userid', 'userid');
  23. }
  24. }