From ef5e5b49c7fee7ec4e753f13c4088f79385aefaa Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 16 Apr 2019 13:22:00 +0100 Subject: [PATCH] Bug 22683: (follow-up) Rename DBIC relationship accessor Rename the DBIC side accessors to match the Koha::Object side one to make the 'prefetch' simpler to guess. Signed-off-by: Martin Renvoize --- Koha/Schema/Result/Accountline.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Accountline.pm b/Koha/Schema/Result/Accountline.pm index 329f11b4e0..b729292f12 100644 --- a/Koha/Schema/Result/Accountline.pm +++ b/Koha/Schema/Result/Accountline.pm @@ -295,7 +295,7 @@ sub koha_object_class { 'Koha::Account::Line'; } -=head2 issue +=head2 checkout Type: belongs_to @@ -307,7 +307,7 @@ if we add a proper foreign key for accountlines.issue_id =cut __PACKAGE__->belongs_to( - "issue", + "checkout", "Koha::Schema::Result::Issue", { "foreign.issue_id" => "self.issue_id" }, { @@ -316,7 +316,7 @@ __PACKAGE__->belongs_to( }, ); -=head2 old_issue +=head2 old_checkout Type: belongs_to @@ -328,7 +328,7 @@ if we add a proper foreign key for accountlines.issue_id =cut __PACKAGE__->belongs_to( - "old_issue", + "old_checkout", "Koha::Schema::Result::OldIssue", { "foreign.issue_id" => "self.issue_id" }, { -- 2.20.1