Bug 9303 [QA Followup] - Restore missing biblio relationship
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 23 Apr 2015 17:56:55 +0000 (13:56 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 31 Dec 2015 13:08:11 +0000 (13:08 +0000)
Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Schema/Result/Item.pm

index 806a2bf..cd74bfb 100644 (file)
@@ -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 ) = @_;