Bug 22549 - We should really leverage the power of DBIx::Class::ResultSetColumn in Koha::Objects
Summary: We should really leverage the power of DBIx::Class::ResultSetColumn in Koha::...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-20 14:12 UTC by Martin Renvoize
Modified: 2019-03-20 14:12 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Renvoize 2019-03-20 14:12:26 UTC
calling get_column on a Koha::Objects object, we currently throw away the ResultSetColumn object and instead call ->all upon it internally to return a simple array of values instead of giving us a ResultSetColumn object back.

We're then forced to do calculations either in perl or be working around the lack of ResultSetColumn.

I've seen cases for 'min', 'max', 'sum' and 'as_query' at the very least.