Re: DataObjects
| From: | Justin Patrin | Date: | Sun, 18 Jul 2004 01:25:51 +0000 |
| Subject: | Re: DataObjects | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13733@lists.php.net to get a copy of this message | ||
Well, the "link" functions don't do joins themselves. If you've set up
your db.links.ini correctly, you can use:
$linkedDo = $do->getLink($fieldName);
to get the dataobject for the record that was linked to.
You can use:
$do->getLinks();
to have it get all of the links in all of its fields and store the
dataobjects as $do->_field.
If you look in the API docs or in the source code for DataObject.php,
there's examples of how to use joinAdd as well.
On Sat, 17 Jul 2004 17:35:16 -0700, Don Fitzsimmons
<dfitzsimmons@cox.net> wrote:
> Can anyone point me to some examples of DataObject other than what is
> on the PEAR site? I'm just not understanding how to do joins with that
> linking function and the examples are leaving me wondering about a few
> things.
>
> Thanks, Don
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> !DSPAM:40f9c3b785099380018117!
>
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--