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:
parent
8a8d5ce582
commit
0d1f8f0963
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue