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.

LuticateGroups.php 509B

123456789101112131415161718
  1. <?php
  2. namespace Luticate\Auth\DataAccess\Models;
  3. use Luticate\Auth\DBO\LuticateGroupsDbo;
  4. class LuticateGroups extends LuticateGroupsModel
  5. {
  6. public function users()
  7. {
  8. return $this->belongsToMany('Luticate\Auth\DataAccess\Models\LuticateUsers', "luticate_users_groups", "group_id", "user_id");
  9. }
  10. public function permissions()
  11. {
  12. return $this->belongsToMany('Luticate\Auth\DataAccess\Models\LuticatePermissions', "luticate_permissions_groups", "group_id", "name");
  13. }
  14. }