Yeah this is one that has plagued me too. I found some code for a workaround by defining a simple extra association in your model, and requiring some small changes to the model::find method that can be implemented in your app_model. I found this code in the bakery I think, modded it a bit though to bring it up to date a bit. I don't have details or code with me right now, but will dig it out.
While far from being what I would consider a complete or ideal fix to this, it got me up and running in the time frame I had, as I too came up short looking for clues on this. Id be keen to hear any comments on this*, does it really not work, or is there something simple some of us are missing?? *that is searching a model based on its habtm associated model records. -----Original Message----- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mr-Yellow Sent: Tuesday, 11 December 2007 7:17 p.m. To: Cake PHP Subject: findAll, associations, HABTM https://trac.cakephp.org/ticket/633 https://trac.cakephp.org/ticket/1209 http://groups.google.pl/group/cake-php/browse_thread/thread/d9468ba788c5ac2c /fb23c6ada4ae8ccd?#fb23c6ada4ae8ccd So it's broken and has been for a year? This is really odd..... to my thinking, without findAll working properly then the whole database abstraction is a waste of time and it's better to use raw SQL in controllers then use Cakes models that don't really connect? -Ben __________ NOD32 2714 (20071210) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---