Bug 29290: Rename relationships borrower => patron
This is a trivial change that is required to be able to embed patron objects in the (old) checkout object. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
6ff32002da
commit
d46492ac23
4 changed files with 4 additions and 4 deletions
|
@ -102,7 +102,7 @@ Return the patron for who the checkout has been done
|
|||
|
||||
sub patron {
|
||||
my ( $self ) = @_;
|
||||
my $patron_rs = $self->_result->borrower;
|
||||
my $patron_rs = $self->_result->patron;
|
||||
return Koha::Patron->_new_from_dbic( $patron_rs );
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ Return the patron for who the checkout has been done
|
|||
|
||||
sub patron {
|
||||
my ( $self ) = @_;
|
||||
my $patron_rs = $self->_result->borrower;
|
||||
my $patron_rs = $self->_result->patron;
|
||||
return unless $patron_rs;
|
||||
return Koha::Patron->_new_from_dbic( $patron_rs );
|
||||
}
|
||||
|
|
|
@ -346,7 +346,7 @@ __PACKAGE__->add_columns(
|
|||
);
|
||||
|
||||
__PACKAGE__->belongs_to(
|
||||
"borrower",
|
||||
"patron",
|
||||
"Koha::Schema::Result::Borrower",
|
||||
{ borrowernumber => "borrowernumber" },
|
||||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
|
||||
|
|
|
@ -315,7 +315,7 @@ __PACKAGE__->add_columns(
|
|||
);
|
||||
|
||||
__PACKAGE__->belongs_to(
|
||||
"borrower",
|
||||
"patron",
|
||||
"Koha::Schema::Result::Borrower",
|
||||
{ borrowernumber => "borrowernumber" },
|
||||
{ join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
|
||||
|
|
Loading…
Reference in a new issue