Also you can use expects():

http://bakery.cakephp.org/articles/view/185

With it, you can specify which models you are expecting as a result of your
find operation.

For example, if all you want to do (given your example) is to obtain a list
of *all* the categories without any related data, then you can do:

$this->Category->expects();
$result = $this->Category->findAll();

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Christopher E. Franklin, Sr.
Enviado el: Lunes, 12 de Febrero de 2007 09:36 p.m.
Para: Cake PHP
Asunto: How do I stop the return of unwanted associated data?

How do I stop the return or query of associated data?  I can see this
becoming a huge problem in the future.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to