DB_DataObject getLinks problem

From: Date: Thu, 29 May 2003 19:23:20 +0000
Subject: DB_DataObject getLinks problem
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5688@lists.php.net to get a copy of this message
Hi, I see some inconsistacy with the DB_DataObject with the following code. I appreciate if someone shed some light on this. The following code works perfect, as expected. $objRights = new DataObjects_Rights() ; $nor = $objRights->find() ; while ($objRights->fetch()) { $objRights->getLinks() ; $strCon = $objRights->rights_name . " -- Seq No [$objRights->rights_seq]\n\t" . $objRights->_conn_id->conn_name . "\n\t" . $objRights->_auth_id->auth_name . "\n\t" . $objRights->_identity_id->identity_name . "\n\t" . $objRights->_access_id->access_name . "\n\n" ; echo $strCon ; } If I change the code to include either where clause or order by then getlinks doesn't work. Is there any know issue or I doing something wrong. The following code doesn't work. $objRights = new DataObjects_Rights() ; $objRights->whereAdd("rights_id > 1") ; $nor = $objRights->find() ; while ($objRights->fetch()) { $objRights->getLinks() ; $strCon = $objRights->rights_name . " -- Seq No [$objRights->rights_seq]\n\t" . $objRights->_conn_id->conn_name . "\n\t" . $objRights->_auth_id->auth_name . "\n\t" . $objRights->_identity_id->identity_name . "\n\t" . $objRights->_access_id->access_name . "\n\n" ; echo $strCon ; } GetLinks fails in the above code. Thanks in advance. -- Raghu

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