I'm not sure what you are asking.  If a User has no Images, then they
won't be retrieved - why bother unbinding?  If you have some Users
that can have images, and another class of Users where images are
completely unrelated - then surely there just won't be any associated
images, so why unbind?  The one extra query ("select * from images
where object_id=n") won't be a performance problem.

Anyway, the only way I've done something similar where I occasionally
want some data that is a little complex, is using afterFind.  So my
User model has a variable $inline_activity_report, and if this is set
to true in the afterFind, then a whole load of extra queries are
performed (and the retrieved User row gets a populated
"_activity_report" field).


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