On 8/29/07, Mech7 <[EMAIL PROTECTED]> wrote:
>
>
> With the Cake way you can only select on the id of foreignkey. If you
> wanted to select on the tag name you with first query the tags with
> that name, put them in a array and then you can query the articles you
> want. So it does not really make code shorter and i assume that
> performance will decrease too since you doing 2 queries.

Fair enough.  One of the upcoming features in 1.2 is the ability to
use 'with' when doing HABTM queries, which will cut down on a lot of
queries.  Check out the slides from the presentation for a quick peek:

http://cakephp.org/files/OCPHP.pdf

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to