1 # This file has been auto-generated only because it didn't exist.
2 # Feel free to modify it at will; it will not be overwritten automatically.
4 package SL::DB::AuthGroup;
8 use SL::DB::MetaSetup::AuthGroup;
9 use SL::DB::Manager::AuthGroup;
10 use SL::DB::AuthGroupRight;
12 __PACKAGE__->meta->schema('auth');
14 __PACKAGE__->meta->add_relationship(
16 type => 'many to many',
17 map_class => 'SL::DB::AuthUserGroup',
22 type => 'one to many',
23 class => 'SL::DB::AuthGroupRight',
24 column_map => { id => 'group_id' },
27 type => 'many to many',
28 map_class => 'SL::DB::AuthClient',
34 __PACKAGE__->meta->initialize;
37 my @logins = map { $_->login } $_[0]->users;
38 return @logins ? @{ SL::DB::Manager::Employee->get_all(query => [ login => \@logins ]) } : ();