Re: DB_DataObject getLinks problem

From: Date: Thu, 29 May 2003 22:43:14 +0000
Subject: Re: DB_DataObject getLinks problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5691@lists.php.net to get a copy of this message
Sorry, found the problem. The problem is with my derived class. Thx "Raghu" <raghu@verniernetworks.com> wrote in message news:20030529192306.10505.qmail@pb1.pair.com... > 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 (#5691) next »