Table joining with DB_DataObject

From: Date: Wed, 19 May 2004 11:09:06 +0000
Subject: Table joining with DB_DataObject
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12595@lists.php.net to get a copy of this message
Hello all! I'm having issues with getting tables to join with DB_Dataobject. I have a two tables, A and B table a id (key) username table b id (key) username attribute I have a database.links.ini with the following in it... [a] userName = b.username and the following code... $a =& DB_DataObject::factory('a'); $b =& DB_DataObject::factory('b'); $b->Attribute = 'Password'; $a->joinAdd($b); $a->find(); $a->fetch(); Var_Dump::display($a); The error I am getting is 'joinAdd: b has no link with a' Can anyone see what I'm doing wrong? kind Regards, Ian

« previous php.pear.general (#12595) next »