https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16686 --- Comment #16 from Kyle M Hall <kyle@bywatersolutions.com> --- (In reply to Jonathan Druart from comment #14)
Kyle, could you have a look at this counter-patch? It seems easier to use the DBIC relationship than to create 3 new methods.
While I agree, I think it adds confusion. The method name 'transfer' is a verb, so it sounds like you would call $item->transfer() to initiate a transfer. Can you change the method name to get_latest_transfer or something like that? I'm also a bit reticent about having a Koha Object return a DBIC object. Would you create Koha::Item::Transfer(s) and return that? It would also avoid a second db query just to get the branch name. -- You are receiving this mail because: You are watching all bug changes.