From 611645a6170f02793942fdc7724f42354c9cf5bb Mon Sep 17 00:00:00 2001 From: Jake Deery Date: Mon, 2 Mar 2026 13:04:20 +0000 Subject: [PATCH] Bug 37346: DBIC - DO NOT PUSH --- Koha/Schema/Result/Borrower.pm | 6 +++--- Koha/Schema/Result/Virtualshelve.pm | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index 2c8bf77f78b..d18bcbb12f4 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -2157,7 +2157,7 @@ Related object: L __PACKAGE__->has_many( "virtualshelves", "Koha::Schema::Result::Virtualshelve", - { "foreign.owner" => "self.borrowernumber" }, + { "foreign.owner_id" => "self.borrowernumber" }, { cascade_copy => 0, cascade_delete => 0 }, ); @@ -2212,8 +2212,8 @@ Composing rels: L -> permission __PACKAGE__->many_to_many("permissions", "user_permissions", "permission"); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-29 16:44:27 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SSJcjPvlr82qecmbk1Q8iA +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-03-02 13:02:45 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0AKVBQau2POdoPO8cnejYQ __PACKAGE__->belongs_to( "library", diff --git a/Koha/Schema/Result/Virtualshelve.pm b/Koha/Schema/Result/Virtualshelve.pm index 0680cd05867..64425075079 100644 --- a/Koha/Schema/Result/Virtualshelve.pm +++ b/Koha/Schema/Result/Virtualshelve.pm @@ -39,7 +39,7 @@ unique identifier assigned by Koha name of the list -=head2 owner +=head2 owner_id data_type: 'integer' is_foreign_key: 1 @@ -120,7 +120,7 @@ __PACKAGE__->add_columns( { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "shelfname", { data_type => "varchar", is_nullable => 1, size => 255 }, - "owner", + "owner_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "public", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, @@ -179,7 +179,7 @@ Related object: L __PACKAGE__->belongs_to( "owner", "Koha::Schema::Result::Borrower", - { borrowernumber => "owner" }, + { borrowernumber => "owner_id" }, { is_deferrable => 1, join_type => "LEFT", @@ -219,8 +219,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-17 19:59:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EKq7nDW2AeZ2NQce2BPMWA +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-03-02 13:02:45 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EDGKMMT7lAa8ReI9gNKJPg =head2 koha_object_class -- 2.50.1 (Apple Git-155)