https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20028 Lari Taskula <lari.taskula@hypernova.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #117106|0 |1 is obsolete| | --- Comment #35 from Lari Taskula <lari.taskula@hypernova.fi> --- Created attachment 119968 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119968&action=edit Bug 20028: Add Koha::Patron->export The logic behind gathering related data relies on DBIx relationships to Borrower source. This patch does not care about object name terminology - it returns related data in a hashref containing keys of DBIx source class names, such as Borrower. Return example: { "Borrower" => Koha::Patron, "BorrowerMessagePreference" => DBIx::Class::ResultSet, "ReturnClaim" => Koha::Checkouts::ReturnClaims } This has the benefit of giving caller the ability to format response as they want. For example, you can then easily use the "unblessed" or "to_api" representation of the object. To test: 1. prove t/db_dependent/Koha/Patron.t 2. Observe success Sponsored-by: The National Library of Finland -- You are receiving this mail because: You are watching all bug changes.