Hi! Thanks for your reply. > Oh, and as a tip, all Cake find functions actually end up using > findAll - including exists, findCount, find, etc. So just change > findAll - you don't have to change each of them separately.
Thank you, I'll take out the findCount() overriding bit then! Does it also affect generateList, or do I still need to specify the override for that too? > Also, if all you want to do is set some additional conditions, you > could do this in the AppModel beforeFind() callback - that's what it > is there for (rather than duplicating/changing the findAll > functionality). Really? I had a quick look at that first, but judging by http://api.cakephp.org/1.2/class_model.html#fca41a83b23b6ec2fd91e75b5845a3ec it looks to me as if you can only use beforeFind() to tell Cake to either go ahead with the find or not do it at all. How do you use it to override the conditions? Thank you very much for your help, Zoe. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
