[Koha-bugs] [Bug 24228] Add a parameter to recursively embed objects in Koha::Object(s)->to_api

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 26 22:22:55 CET 2019


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

Agustín Moyano <agustinmoyano at theke.io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #96612|0                           |1
        is obsolete|                            |
  Attachment #96622|0                           |1
        is obsolete|                            |

--- Comment #7 from Agustín Moyano <agustinmoyano at theke.io> ---
Created attachment 96644
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96644&action=edit
Bug 24228: Add parameters to Koha::Object(s)->to_api to automatically embed
objects

This patch makes Koha::Object(s)->to_api have an 'embeds' parameter that
using dot notation (e.g. resource.related_resource.another_one) allows
embedding objects recursively.

To test:
1. Apply this patch
2. prove t/db_dependent/Koha/Object.t

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Agustin Moyano <agustinmoyano at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list