If you want to specify model 2 fields in your fin's field or
conditions arrays you need to force a join by changing the association
from hasMany to hasOne using un/bindmodel otherwise find will run two
queries fetching model1 first then running a separate query for model2
and combining the returned datasets.

However if you only want to limit what fields find returs for the
hasMany relationship you can do this with containable by specifying a
fields array for each model you include in your contains array.

HTH

Paul

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to