From 4fbbeed63ce285a5f87a8ccb3418c73ebd9da945 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 15 Nov 2024 13:24:29 +0100 Subject: [PATCH] Bug 38136: Move DBIC component to Koha::Schema namespace --- Koha/{DBIx/Class => Schema/Component}/Localization.pm | 6 +++--- Koha/Schema/Result/Itemtype.pm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename Koha/{DBIx/Class => Schema/Component}/Localization.pm (97%) diff --git a/Koha/DBIx/Class/Localization.pm b/Koha/Schema/Component/Localization.pm similarity index 97% rename from Koha/DBIx/Class/Localization.pm rename to Koha/Schema/Component/Localization.pm index cfc09502ae..9d1f57065e 100644 --- a/Koha/DBIx/Class/Localization.pm +++ b/Koha/Schema/Component/Localization.pm @@ -1,8 +1,8 @@ -package Koha::DBIx::Class::Localization; +package Koha::Schema::Component::Localization; =head1 NAME -Koha::DBIx::Class::Localization +Koha::Schema::Component::Localization =head1 SYNOPSIS @@ -10,7 +10,7 @@ Koha::DBIx::Class::Localization # ... generated code ... - __PACKAGE__->load_components('+Koha::DBIx::Class::Localization'); + __PACKAGE__->load_components('+Koha::Schema::Component::Localization'); __PACKAGE__->localization_add_relationships( 'some_table_localizations', diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index 95340ed4a2..3b4c89654a 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -360,7 +360,7 @@ __PACKAGE__->add_columns( '+rentalcharge_hourly_calendar' => { is_boolean => 1 }, ); -__PACKAGE__->load_components('+Koha::DBIx::Class::Localization'); +__PACKAGE__->load_components('+Koha::Schema::Component::Localization'); __PACKAGE__->localization_add_relationships( 'itemtypes_localizations', 'itemtype' => 'itemtype', -- 2.39.2