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

--- Comment #33 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 200209
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200209&action=edit
Bug 29099: Add Koha objects for item bundle(s)

Introduces Koha::Item::Bundle and Koha::Item::Bundles as the modern
Koha-object layer over the item_bundles table.

Koha::Item::Bundle exposes two relationship helpers:
  item_object() — returns the bundled Koha::Item
  host_item()   — returns the bundle host Koha::Item

The name item_object() is used instead of item() to avoid shadowing
the DBIC column accessor of the same name.

Registers koha_object_class / koha_objects_class in the auto-generated
Koha::Schema::Result::ItemBundle so that the standard Koha ORM mapping
works correctly when constructing objects from DBIC result sets.

Test plan:
  prove t/db_dependent/Koha/Item/Bundle.t

-- 
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