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

--- Comment #40 from David Nind <[email protected]> ---
Created attachment 209046
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209046&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

Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to