https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24430 --- Comment #2 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 97415 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97415&action=edit Bug 24430: Add ->orders and ->orders_count to Koha::Biblio This patch introduces an accessor to the related orders, and a method that returns the orders count. The target usage for the count is the API. In the rest of the codebase, we would just call: $biblio->orders->count To test: 1. Apply this patches 2. Run: $ kshell k$ prove t/db_dependent/Koha/Biblio.t => SUCCESS: Tests pass! 3. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.