]> git.koha-community.org Git - koha.git/commit
Bug 16965: [Follow-up] Adjust get_object_class
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 28 Jul 2016 12:28:43 +0000 (14:28 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 17:31:14 +0000 (17:31 +0000)
commitb8df96082ec84097aac24e2128e6b8d1a34c463e
tree0e56299fd8f6df68ce2ce4cb7f4db8eb40772041
parent3d110a3c72432249613bc38333d4c0260a4356c4
Bug 16965: [Follow-up] Adjust get_object_class

In many cases it should be possible to derive the Koha::Objects class
name from the DBIx result class name in a trivial manner.
If not, the DBIx result class should have a class method called
koha_objects_class providing that non-trivial name, such as Libraries
for Branch.

Note: We are only interested in the plural form here (Koha::Objects).

Test plan:
Run t/db_dependent/Koha/Objects.t

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Objects.pm
Koha/Schema/Result/Borrower.pm
Koha/Schema/Result/Branch.pm