Re: joins with DB_DataOject
| From: | Joe Stump | Date: | Wed, 12 Nov 2003 12:45:41 +0000 |
| Subject: | Re: joins with DB_DataOject | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8871@lists.php.net to get a copy of this message | ||
> [cart]
> ItemId = Item:Id
>
> However, when doing this...
>
> $cart = new DataObjects_Cart;
> $cart->Username = Auth::getAuth();
> $item = new DataObjects_Item;
> $cart->joinAdd($item);
> $cart->find();
I believe that the links file is only used by getLink() and getLinks(),
but I could be wrong. As far as your join problems - I haven't used them
yet.
--Joe
>
> I get..
>
> CONNECT NEW CONNECTION
>
> CONNECT mysql://root:<removed>@localhost/shop
> add909c7897b030e64d913aadb9d06e1
>
> ERROR joinAdd: cart has no link with item
>
> __find
>
> What am I doing wrong? I have read the manual about 3 times over now, but
> I'm unable to figure it out.
>
> Kind Regards,
>
> --
> Ian P. Christian
> http://www.fuzzmail.co.uk ~ Free, Fast and Fuzzy webmail
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Joe Stump <joe@joestump.net>
http://www.joestump.net
"Label makers are proof God wants Sys Admins to be happy."