Re: DataObject: getLink

From: Date: Sat, 09 Aug 2003 02:21:44 +0000
Subject: Re: DataObject: getLink
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-7132@lists.php.net to get a copy of this message
$content->find(); while ($content->fetch()) {
    $c = $tb_A->getLink('id_A', 'tb_c', 'id_A');
....
This code does not work as expected. The return from $tb_A->getLink is false.
Turn on debugging.. DB_DataObject::debugLevel(1); It will give you a clue about what is going on..
According to the manual, the while-statement should be: while ($content->find()) { ... fixed thanks
but this results in an endless loop. Can anybody tell me what I am doing wrong, please. I would also be glad the get tips how to process such a m:n relation effectively by using DataObject. Thanks a lot! -- Cheers! Marco


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