X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/89c9ff022d3f13e27ba6bda085df15707fcfb0eb..3568f2f8cb1f21031ee5255f054c0431544c5607:/SL/DB/AuthGroup.pm diff --git a/SL/DB/AuthGroup.pm b/SL/DB/AuthGroup.pm index fe755c7b5..2bb168eaf 100644 --- a/SL/DB/AuthGroup.pm +++ b/SL/DB/AuthGroup.pm @@ -1,18 +1,11 @@ -# This file has been auto-generated only because it didn't exist. -# Feel free to modify it at will; it will not be overwritten automatically. - package SL::DB::AuthGroup; use strict; use SL::DB::MetaSetup::AuthGroup; +use SL::DB::Manager::AuthGroup; use SL::DB::AuthGroupRight; -# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. -__PACKAGE__->meta->make_manager_class; - -__PACKAGE__->meta->schema('auth'); - __PACKAGE__->meta->add_relationship( users => { type => 'many to many', @@ -25,6 +18,12 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::AuthGroupRight', column_map => { id => 'group_id' }, }, + clients => { + type => 'many to many', + map_class => 'SL::DB::AuthClientGroup', + map_from => 'group', + map_to => 'client', + }, ); __PACKAGE__->meta->initialize;