@@ -, +, @@ --- Koha/Schema/Result/Issue.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) --- a/Koha/Schema/Result/Issue.pm +++ a/Koha/Schema/Result/Issue.pm @@ -373,6 +373,21 @@ __PACKAGE__->belongs_to( }, ); +=head2 renewals + +Type: has_many + +Related object: L + +=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 --