From cd77a7b74edd711443ae07e5b7e13fa67f169069 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 23 Apr 2015 13:56:55 -0400 Subject: [PATCH] Bug 9303 [QA Followup] - Restore missing biblio relationship Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall --- Koha/Schema/Result/Item.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index 806a2bff5b..cd74bfb8e7 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -621,6 +621,13 @@ __PACKAGE__->might_have( __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); +__PACKAGE__->belongs_to( + "biblio", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + sub effective_itemtype { my ( $self ) = @_; -- 2.39.5