MakeModel: ActsAsList
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 17 Sep 2014 15:35:51 +0000 (17:35 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 17 Sep 2014 15:35:51 +0000 (17:35 +0200)
SL/DB/MakeModel.pm

index a99f64e..f94cd0a 100644 (file)
@@ -6,6 +6,7 @@ package SL::DB::MakeModel;
 use strict;
 
 use SL::DB::MetaSetup::MakeModel;
+use SL::DB::Helper::ActsAsList (column_name => 'sortorder', group_by => [ qw(parts_id) ]);
 
 __PACKAGE__->meta->initialize;