[Koha-bugs] [Bug 22407] New: OMNIBUS: Use DBIC relations to fetch related object rather than searching for the object
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 25 16:22:51 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22407
Bug ID: 22407
Summary: OMNIBUS: Use DBIC relations to fetch related object
rather than searching for the object
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: nick at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
Target Milestone: ---
Example, instead of this:
return Koha::Patrons->find( $self->guarantorid() );
We should do this:
return Koha::Patron->_new_from_dbic($self->_result->guarantor);
This allows us to use prefetch and perform a single query as opposed to
multiple queries
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list