On 6/21/07, Nasko <[EMAIL PROTECTED]> wrote:
>
> Unfortunately, defining the fake model association in the Bookmarks
> model caused the normal $this->Bookmark->findAll() requests in other
> actions to return multiple records for each bookmark :(

I'd go with Adam's suggestion of creating a method in your models to
do the binding for you when you need it, and also don't set recursive
so high and I think that should prevent the duplicate records coming
back.

Also, why worry about changing the name of the join table or the
models down the road?  You'd have to rewrite stuff either way.  Follow
the conventions, just like you would if you were using Rails.

-- 
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 cake-php@googlegroups.com
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