In order to update several rows in a single query, we need this new method.
Created attachment 53645 [details] [review] Bug 16961: Add Koha::Objects->update In order to update several rows in a single query, we need this new method. Test plan: Confirm that the changes in Objects.t make sense and that the tests pass.
Created attachment 53655 [details] [review] [SIGNED-OFF]Bug 16961: Add Koha::Objects->update In order to update several rows in a single query, we need this new method. Test plan: Confirm that the changes in Objects.t make sense and that the tests pass. Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Test passed successfully
Time for an AUTOLOAD ?
(In reply to Marcel de Rooy from comment #3) > Time for an AUTOLOAD ? Yes, it's in my todo list :) I have just needed it for bug 16966 and did not want to add a 'big' blocker.
Hm, big dependency tree starting here.
I am not sure if this line still makes sense... Koha::Cities->search( { city_country => 'UK' } )->update( { city_country => 'EU' } ); But the test works :)
Created attachment 55654 [details] [review] [PASSED QA] Bug 16961: Add Koha::Objects->update In order to update several rows in a single query, we need this new method. Test plan: Confirm that the changes in Objects.t make sense and that the tests pass. Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Test passed successfully Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Pushed to master for 16.11, thanks Jonathan!