]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/AuthGroup.pm
RDBO: Setups der Auth*-Instanzen vereinheitlicht
[mfinanz.git] / SL / DB / AuthGroup.pm
index fe755c7b501ed3aa4a2afefc3d4b5c2e61b9cb39..2bb168eaf2a2a0fc2fc74d93a85dde1b8548077d 100644 (file)
@@ -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;