Bug 13905 - Wrapping DBIx count inside Koha Object
Summary: Wrapping DBIx count inside Koha Object
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Olli-Antti Kivilahti
QA Contact: Kyle M Hall (khall)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 13:49 UTC by Olli-Antti Kivilahti
Modified: 2015-12-03 22:00 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 13905 - Wrapping DBIx count inside Koha Object (995 bytes, patch)
2015-03-25 13:50 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Olli-Antti Kivilahti 2015-03-25 13:49:41 UTC
DBIx::Class::ResultSet has a handy method count() to see how many results this prepared ResultSet would return.

This is hidden by the Koha::Object.

This patch adds a wrapper for the count() method inside the Koha::Object, so it is nicely available for all subclasses.
Comment 1 Olli-Antti Kivilahti 2015-03-25 13:50:22 UTC
Created attachment 37215 [details] [review]
Bug 13905 - Wrapping DBIx count inside Koha Object

DBIx::Class::ResultSet has a handy method count() to see how many results this
prepared ResultSet would return.

This is hidden by the Koha::Object.

This patch adds a wrapper for the count() method inside the Koha::Object, so it
is nicely available for all subclasses.
Comment 2 Olli-Antti Kivilahti 2015-03-25 14:06:09 UTC
count() is already in Koha::Objects