From 5080bc12a240e6e6c1fb7d2c8e93d78137b5092c Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 21 Dec 2009 16:40:01 -0800 Subject: Fix the relationship. DigibugProxy belongs to Item, not the other way around. K24 ORM requires this because it needs to know where the foreign key is (in the Digibug_Proxy table, in this case). --- modules/digibug/models/digibug_proxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/digibug') diff --git a/modules/digibug/models/digibug_proxy.php b/modules/digibug/models/digibug_proxy.php index c76afdae..10949ed7 100644 --- a/modules/digibug/models/digibug_proxy.php +++ b/modules/digibug/models/digibug_proxy.php @@ -18,5 +18,5 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Digibug_Proxy_Model extends ORM { - protected $has_one = array("item"); + protected $belongs_to = array("item"); } -- cgit v1.2.3