Bug 22549

Summary: We should really leverage the power of DBIx::Class::ResultSetColumn in Koha::Objects
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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.