From fa2ed70035830d46c291a38745c1afd863efe743 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 3 Aug 2020 14:29:45 -0300 Subject: [PATCH] Bug 26129: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: David Nind --- Koha/Schema/Result/Branch.pm | 15 +++++++++++++++ Koha/Schema/Result/Category.pm | 15 +++++++++++++++ Koha/Schema/Result/Itemtype.pm | 15 +++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index 87f4ec190f..3e206c890f 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -526,6 +526,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 configurations + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "configurations", + "Koha::Schema::Result::Configuration", + { "foreign.library_id" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 course_items Type: has_many diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index 9cd2dc71ae..ba157c1d9c 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -328,6 +328,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 configurations + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "configurations", + "Koha::Schema::Result::Configuration", + { "foreign.category_id" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 pseudonymized_transactions Type: has_many diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index 266f19ee0f..af29b76368 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -257,6 +257,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 configurations + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "configurations", + "Koha::Schema::Result::Configuration", + { "foreign.item_type" => "self.itemtype" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 itemtypes_branches Type: has_many -- 2.11.0