[Koha-devel] Koha and DBIC

Kyle Hall kyle.m.hall at gmail.com
Wed Sep 17 12:40:09 CEST 2014


Chris, I'm a bit lost here. The idea behind Koha::Object is that we have a
common base class from which to derive Koha::Biblio, Koha::Serial and so
forth. That is, this class would be used as the base for classes that have
a simple 1 to 1 table mapping to encapsulate DBIC while maintaining a
consistent set of methods across our many classes. ObjectSet would give us
set iterators, set operations, and be a better place to have methods that
return a set ( e.g. Koha::Issue::Set::GetOverdues would return a collection
of overdue checkouts ).

I'm not sure why you disagree with this idea. Could you expand a bit?

Kyle


> -1 for DBIx::Class calls in the .pl
> -1 for Koha::Object and Koha::Object::Set
> +1 for proper objects like Koha::Biblio, Koha::Account, Koha::Serial etc
>
> Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20140917/3b5fc3d8/attachment.html>


More information about the Koha-devel mailing list