[Koha-bugs] [Bug 24467] *_count methods should be avoided

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 31 05:49:04 CET 2020


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

--- Comment #5 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 98198
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98198&action=edit
Bug 24467: Remove _count methods introduced for API use

This patch removes some methods that were introduced for API usage in
the first iteration of the object embedding development effort.

Those methods were obsoleted by bug 24528, which introduces a smarter
way for Koha::Object->to_api to embed *_count attributes on the output
structure based on the relationships and a call to ->count.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Biblio.t
=> SUCCESS: Tests pass
3. Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list