From c7ee20e7fc07ab4768fb181a45750019cfeeb0d8 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 8 Jul 2022 16:11:11 -0300 Subject: [PATCH] Bug 24857: DBIC update Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/Biblio.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Item.pm | 19 +++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm index ddae29b069..f27ee62b08 100644 --- a/Koha/Schema/Result/Biblio.pm +++ b/Koha/Schema/Result/Biblio.pm @@ -315,6 +315,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 item_groups + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "item_groups", + "Koha::Schema::Result::ItemGroup", + { "foreign.biblio_id" => "self.biblionumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 items Type: has_many @@ -541,8 +556,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2022-03-28 22:07:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sh8waM4ivuiNao0VV5403Q +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-08 19:06:29 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QmW8BVyUx2F2MAp6ZG45mg __PACKAGE__->has_many( "biblioitem", diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index ce96288737..01ebbe3636 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -729,6 +729,21 @@ __PACKAGE__->might_have( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 item_group_item + +Type: might_have + +Related object: L + +=cut + +__PACKAGE__->might_have( + "item_group_item", + "Koha::Schema::Result::ItemGroupItem", + { "foreign.item_id" => "self.itemnumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 items_last_borrower Type: might_have @@ -880,8 +895,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2022-03-28 22:07:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:28f9/7z3Nq5C4qzBMyceiQ +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-08 19:06:29 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y5EYc49JqMIr3A3aQBTtTQ __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); -- 2.39.5