On Aug 17, 2006, at 8:01 PM, Bret Kuhns wrote:

>
> Contrary to popular practice,

There's a reason for this... ;o)

> I want to create a gallery script using
> BLOB fields in my database to store the images and thumbnails. When I
> retrieve the list of gallery albums, cake recursively gets all the
> fields from the associated images table. However, pulling all of this
> data at once with the BLOB fields would create a lot of extra  
> overhead.
>
> I know there's a function argument to disable find()'s recursion,  
> but I
> like the feature. So is there any way that I can tell cake that I  
> don't
> want the BLOB fields when it automatically retrieves the image
> information?

Yeah, the second parameter of find() allows you to specify the  
fields  you wish to SELECT.

Check out the API at http://api.cakephp.org.

-- John

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

Reply via email to