From: Chuck Hagenbuch Date: Tue, 25 Aug 2009 04:18:50 +0000 (-0400) Subject: right now, *_TO_MANY relationships have to be lazy X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6aa7340471f3e0d21a15ef37ed414fa26fe8327b;p=horde.git right now, *_TO_MANY relationships have to be lazy --- diff --git a/framework/Rdo/examples/Horde/Rdo/Clotho.php b/framework/Rdo/examples/Horde/Rdo/Clotho.php index 42767c8b5..1835e7c95 100644 --- a/framework/Rdo/examples/Horde/Rdo/Clotho.php +++ b/framework/Rdo/examples/Horde/Rdo/Clotho.php @@ -48,13 +48,16 @@ class Item extends Horde_Rdo_Base { class ItemMapper extends Clotho_Mapper { protected $_relationships = array( - 'resources' => array('type' => Horde_Rdo::MANY_TO_MANY, - 'mapper' => 'ResourceMapper', - 'through' => 'clotho_wbs_resources'), 'parent' => array('type' => Horde_Rdo::ONE_TO_ONE, 'foreignKey' => 'item_parent', 'mapper' => 'ItemMapper'), - ); + ); + + protected $_lazyRelationships = array( + 'resources' => array('type' => Horde_Rdo::MANY_TO_MANY, + 'mapper' => 'ResourceMapper', + 'through' => 'clotho_wbs_resources'), + ); protected $_table = 'clotho_wbs_items'; @@ -101,7 +104,7 @@ class Resource extends Horde_Rdo_Base { */ class ResourceMapper extends Clotho_Mapper { - protected $_relationships = array( + protected $_lazyRelationships = array( 'availabilities' => array('type' => Horde_Rdo::ONE_TO_MANY, 'foreignKey' => 'resource_id', 'mapper' => 'ResourceAvailabilityMapper'),