From 0701c7ef6828c8ab64e3381d4b69bf8d9ac1d870 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Sun, 7 Aug 2016 22:42:20 +0200 Subject: [PATCH] =?utf8?q?Manager=20f=C3=BCr=20PriceFactor=20mit=20sort=5F?= =?utf8?q?spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Manager/PriceFactor.pm | 20 ++++++++++++++++++++ SL/DB/PriceFactor.pm | 3 +-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 SL/DB/Manager/PriceFactor.pm diff --git a/SL/DB/Manager/PriceFactor.pm b/SL/DB/Manager/PriceFactor.pm new file mode 100644 index 000000000..84030c8ce --- /dev/null +++ b/SL/DB/Manager/PriceFactor.pm @@ -0,0 +1,20 @@ +package SL::DB::Manager::PriceFactor; + +use strict; + +use SL::DB::Helper::Manager; +use base qw(SL::DB::Helper::Manager); + +use SL::DB::Helper::Sorted; + +sub object_class { 'SL::DB::PriceFactor' } + +__PACKAGE__->make_manager_methods; + +sub _sort_spec { + return ( default => [ 'sortkey', 1 ], + columns => { SIMPLE => 'ALL' }); +} + +1; + diff --git a/SL/DB/PriceFactor.pm b/SL/DB/PriceFactor.pm index 591a97d07..af8b4ef2a 100644 --- a/SL/DB/PriceFactor.pm +++ b/SL/DB/PriceFactor.pm @@ -3,12 +3,11 @@ package SL::DB::PriceFactor; use strict; use SL::DB::MetaSetup::PriceFactor; +use SL::DB::Manager::PriceFactor; use SL::DB::Helper::ActsAsList; __PACKAGE__->meta->initialize; -__PACKAGE__->meta->make_manager_class; - 1; __END__ -- 2.20.1