I am a newbie and I've run into the same requirement. I have been doing a read() or findById() in order to lookup by the "id" field in my model. In order to take advantage of the $recursive argument, I tried using find() instead. It works as advertised with the recursion levels and search conditions that I have tried *except* that it does not return a match when I use the "id" field in my condition argument. Can someone tell me if there is some special handling of the id field by find() which makes it different for conditions than other fields (in this case "id" is an unsigned integer which is the table's primary key)?
Thanks. On Apr 12, 1:26 pm, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > I've just discovered the magic of setting the recursive value using > FindAll(). It's really exiting to see how easy it is to make complex > associations, and how well Cake can search up and down the association > tree! > > My question is: how do I use recursive with FindBy? I want to have > nice urls, so I use FindByUrl($url); But how do I set the recursive > value in this case? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---