Patron Stat Cat Enhancements: Link CDBI actor::stat_cat_entry_default to parent entities.
authorScott Prater <sprater@gmail.com>
Tue, 27 Dec 2011 21:46:34 +0000 (15:46 -0600)
committerThomas Berezansky <tsbere@mvlc.org>
Mon, 2 Apr 2012 15:32:09 +0000 (11:32 -0400)
Add relations between actor::stat_cat and actor::stat_cat_entry to actor::stat_cat_entry_default.

Signed-off-by: Scott Prater <sprater@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI.pm

index 1bf550d..56f20aa 100644 (file)
@@ -484,8 +484,12 @@ sub modify_from_fieldmapper {
        action::hold_request->has_many( transits => 'action::hold_transit_copy' );
 
        actor::stat_cat_entry->has_a( stat_cat => 'actor::stat_cat' );
+       actor::stat_cat_entry->has_many( default_entries => 'actor::stat_cat_entry_default' );
+       actor::stat_cat_entry_default->has_a( stat_cat => 'actor::stat_cat' );
+       actor::stat_cat_entry_default->has_a( stat_cat_entry => 'actor::stat_cat_entry' );
        actor::stat_cat->has_a( owner => 'actor::org_unit' );
        actor::stat_cat->has_many( entries => 'actor::stat_cat_entry' );
+       actor::stat_cat->has_many( default_entries => 'actor::stat_cat_entry_default' );
        actor::stat_cat_entry_user_map->has_a( stat_cat => 'actor::stat_cat' );
        actor::stat_cat_entry_user_map->has_a( stat_cat_entry => 'actor::stat_cat_entry' );
        actor::stat_cat_entry_user_map->has_a( target_usr => 'actor::user' );