On 8/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> mmm.
>
> SQL not contain this conditions.
> Only
> WHERE `Post`.`top_id` IN (1)
> And no contain Post.approved = 1...
>
> SELECT `Post`.`id`..... FROM `posts` AS `Post` WHERE `Post`.`top_id`
> IN (1)
>
> ;(

Then I suggest you examine your models and make sure you have all the
relationships created correctly.  Others can correct me, but if you
have the relationships between top and posts created I don't see why
it won't work.

-- 
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