View | Details | Raw Unified | Return to bug 30275
Collapse All | Expand All

(-)a/Koha/Old/Checkout.pm (+15 lines)
Lines 90-95 sub issuer { Link Here
90
    return Koha::Patron->_new_from_dbic( $issuer_rs );
90
    return Koha::Patron->_new_from_dbic( $issuer_rs );
91
}
91
}
92
92
93
=head3 renewals
94
95
  my $renewals = $checkout->renewals;
96
97
Return a Koha::Checkouts::Renewals set attached to this checkout
98
99
=cut
100
101
sub renewals {
102
    my ( $self ) = @_;
103
    my $renewals_rs = $self->_result->renewals;
104
    return unless $renewals_rs;
105
    return Koha::Checkouts::Renewals->_new_from_dbic( $renewals_rs );
106
}
107
93
=head3 anonymize
108
=head3 anonymize
94
109
95
    $checkout->anonymize();
110
    $checkout->anonymize();
(-)a/Koha/Schema/Result/OldIssue.pm (-1 / +15 lines)
Lines 343-348 __PACKAGE__->belongs_to( Link Here
343
  },
343
  },
344
);
344
);
345
345
346
=head2 renewals
347
348
Type: has_many
349
350
Related object: L<Koha::Schema::Result::CheckoutRenewal>
351
352
=cut
353
354
__PACKAGE__->has_many(
355
    "renewals",
356
    "Koha::Schema::Result::CheckoutRenewal",
357
    { "foreign.issue_id" => "self.issue_id" },
358
    { cascade_copy       => 0, cascade_delete => 0 },
359
);
360
346
=head2 return_claim
361
=head2 return_claim
347
362
348
Type: might_have
363
Type: might_have
349
- 

Return to bug 30275