https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20028

Lari Taskula <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #119974|0                           |1
        is obsolete|                            |

--- Comment #44 from Lari Taskula <[email protected]> ---
Created attachment 120844
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120844&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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to