Chris, we've cross-posted :)
> 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. yes, I just did that. I've set recursive = 2, back when I fetched the bookmarks through $this->Bookmark->Tag->findAll() But, when I understood it was not possible to use the pagination component with the default HABTM association (due to the lack of JOINs in the generated sql queries) I dropped this getter for the fake association approach. > 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. I think the only thing not following the conventions in my code is the name of the fake model 'BookmarkTag'. And having it in the Bookmark model definition in conjunction with the HABTM association definition caused my repetitive records. Removing it from the model and double binding in the controller solved my issue Thanks! > 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 -~----------~----~----~----~------~----~------~--~---
