https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22407

--- Comment #7 from Martin Renvoize <[email protected]> ---
DRAFT:

Within PERL15 under Koha::Object

Koha::Object relationship accessors should be written to allow 'prefetch'

For example one should use:

sub guarantor {
    my $self = shift;
    my $guarantor_rs = $self->_result->guarantorid;
    return unless $guarantor_rs;
    return Koha::Patron->_new_from_dbic($gaurantor_rs);
}

One should not use:

sub guarantor {
    my $self = shift;
    return Koha::Patrons->find( $self->guarantorid() );
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to