use strict;
use SL::DB::MetaSetup::MakeModel;
+use SL::DB::Manager::MakeModel;
use SL::DB::Helper::ActsAsList (column_name => 'sortorder', group_by => [ qw(parts_id) ]);
__PACKAGE__->meta->initialize;
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
1;
--- /dev/null
+package SL::DB::Manager::MakeModel;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use SL::DB::Helper::Sorted;
+use SL::DB::Helper::Paginated;
+use SL::DB::Helper::Filtered;
+use base qw(SL::DB::Helper::Manager);
+
+use Carp;
+use SL::DBUtils;
+use SL::MoreCommon qw(listify);
+
+sub object_class { 'SL::DB::MakeModel' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+ (
+ default => [ 'sortorder', 1 ],
+ columns => {
+ SIMPLE => 'ALL',
+ },
+ nulls => {},
+ );
+}
+
+1;
+__END__