Re: DB_DataObject linking: is it only good for single row joins?

From: Date: Sat, 08 May 2004 05:02:55 +0000
Subject: Re: DB_DataObject linking: is it only good for single row joins?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12359@lists.php.net to get a copy of this message
Mike Zornek wrote:
I have a table called member and another called email. The basic idea is that each member can have one or more emails. I'm using DB_DataObject and am beginning to think that it's facilities for links and joins is only useful for single row joins. Is this true or am I just not understanding the documentation? If this is the case I'm wondering what my options are and if others have advise. I suppose I could override the constructor of member to assign an array variable inside of the member, with a listing of the email_ids I'll need later in the script. Any thoughts? ~ Mike ----- Mike Zornek Web Designer, Media Developer, Programmer and Geek Personal site: <http://MikeZornek.com> New Project: <http://WebDevWiki.com>
Well, getLinks() gets links from the linker ot the linkee. Namely, fromt the e-mail to the user. If you want to link the other way, set the user id in an e-mail DO and do a find(). AFAIK, DB_DO doesn't support backwards links. -- paperCrane <Justin Patrin>

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