Re: Re: DataObject: getLink
| From: | Marco Schuler | Date: | Sat, 09 Aug 2003 09:28:24 +0000 |
| Subject: | Re: Re: DataObject: getLink | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7137@lists.php.net to get a copy of this message | ||
Hello Alan
Am Sam, 2003-08-09 um 04.21 schrieb Alan Knowles:
> >
> > $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..
Thanks a lot for this tip. I had one table called references in my DB.
Of course this is a bad name for a table :-) After renaming, my code
works fine.
Thanks!
--
Cheers!
Marco