From d87bffa0911e21def994018977e667e028e0c4aa Mon Sep 17 00:00:00 2001 From: Alex Sassmannshausen Date: Fri, 9 Dec 2016 09:47:02 +0100 Subject: [PATCH] Bug 11897: DBIX::Class::Ordered in Stockrotationstage. * Koha/Schema/Result/Stockrotationstage.pm: Load `Ordered`, add grouping_column. Signed-off-by: Kathleen Milne Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- Koha/Schema/Result/Stockrotationstage.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Schema/Result/Stockrotationstage.pm b/Koha/Schema/Result/Stockrotationstage.pm index e95e2bdb4e..3836314639 100644 --- a/Koha/Schema/Result/Stockrotationstage.pm +++ b/Koha/Schema/Result/Stockrotationstage.pm @@ -131,6 +131,9 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 15:50:42 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SKkedF8PL3DWma8kv8yYmg +# We use DBIx::Class::Ordered to handle stages manipulation. +__PACKAGE__->load_components(qw( Ordered )); + +__PACKAGE__->grouping_column('rota_id'); # Our group_id -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; -- 2.39.5