@@ -, +, @@ relationships to the schema --- Koha/Schema/Result/Biblioitem.pm | 3 ++- Koha/Schema/Result/Item.pm | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) --- a/Koha/Schema/Result/Biblioitem.pm +++ a/Koha/Schema/Result/Biblioitem.pm @@ -344,6 +344,7 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-24 14:19:57 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A/4lKYlKWWd8TcMVzMRtCg +__PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" ); +__PACKAGE__->belongs_to( items => "Koha::Schema::Result::Item", "biblioitemnumber" ); -# You can replace this text with custom content, and it will be preserved on regeneration 1; --- a/Koha/Schema/Result/Item.pm +++ a/Koha/Schema/Result/Item.pm @@ -619,6 +619,8 @@ __PACKAGE__->might_have( # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-23 12:42:12 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:urSpNt7LBda4T5Plhi6cPw +__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); + sub effective_itemtype { my ( $self ) = @_; --