Bug 30275: Add 'renewals' relation to Issue Schema

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-03-11 14:05:48 +00:00 committed by Tomas Cohen Arazi
parent 8a8d5ce582
commit 0d1f8f0963
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 15 additions and 0 deletions

View File

@ -373,6 +373,21 @@ __PACKAGE__->belongs_to(
},
);
=head2 renewals
Type: has_many
Related object: L<Koha::Schema::Result::CheckoutRenewal>
=cut
__PACKAGE__->has_many(
"renewals",
"Koha::Schema::Result::CheckoutRenewal",
{ "foreign.issue_id" => "self.issue_id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 return_claim
Type: might_have