]> git.koha-community.org Git - koha.git/commit
Bug 18361: Koha::Objects->find should accept composite primary keys
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 31 Mar 2017 11:52:15 +0000 (13:52 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Jun 2017 14:52:18 +0000 (11:52 -0300)
commitec288a50def5c4fdcd7b001087fed0b120e4a211
treeac28983c026a0620dd3b7150c9402500d84745de
parentad7ff09b995e5275f2c6d664b31351321b1674af
Bug 18361: Koha::Objects->find should accept composite primary keys

Changes the $id parameter to an array. (IssuingRule has three keys.)
The build_object method in TestBuilder.pm has been adjusted to pass
multiple primary key values to find.

Also adjusted the POD section to show more clearly that we accept
the same parameters as DBIx ResultSet does.

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

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Objects.pm
t/lib/TestBuilder.pm