From 0bc9f823ee737212ec757d01ade136121ef88a12 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 11 Feb 2026 14:36:38 +0000 Subject: [PATCH] Bug 16631: DBIC changes DO NOT PUSH --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- Koha/Schema/Result/SavedSql.pm | 21 +++++++++++++++++++-- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index 0ac29d99ab7..820f790067e 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -920,6 +920,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 reports_branches + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "reports_branches", + "Koha::Schema::Result::ReportsBranch", + { "foreign.branchcode" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 reserves Type: has_many @@ -1011,8 +1026,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-10 17:39:28 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qVz4KJbAEtT4XDNdAxWc7w +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-11 14:35:53 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2RTm9eV8os0VpZaKOcw0Yw __PACKAGE__->has_many( "additional_field_values", diff --git a/Koha/Schema/Result/SavedSql.pm b/Koha/Schema/Result/SavedSql.pm index 6f75ae3b31d..89baf00696a 100644 --- a/Koha/Schema/Result/SavedSql.pm +++ b/Koha/Schema/Result/SavedSql.pm @@ -185,9 +185,26 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); +=head1 RELATIONS -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:198dNG9DGQzop+s5IHy7sw +=head2 reports_branches + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "reports_branches", + "Koha::Schema::Result::ReportsBranch", + { "foreign.report_id" => "self.id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-11 14:35:53 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jWUkBLmhpsdSqH7o3U+Ang __PACKAGE__->add_columns( '+public' => { is_boolean => 1 } -- 2.39.5