Hello,

I have a question about how to use conditions with associated models.

I have a model namea A with this associated models

model_a => array (
                      model_b => array( field_1 , field_2),
                      model_c => array(
                                           array(
                                                model_d =>
array(field_3,field_4),
                                                model_e =>
array(field_4,field_6)
                                           )
                                        )
                   );

I would like to select all the model_a where their model_e.field_8 ==
'Hello Dolly', but it never works as I expect.

I use something like:

model_a => array (
                      model_b => array( field_1 , field_2),
                      model_c => array(
                                                fields =>
array(field_3,field_4),
                                                model_d =>
array(field_5,field_6),
                                                model_e => array(
 
fields=> array(field_7,field_8),
 
conditions => array('model_e.field_8' => 'Hello Dolly')
                                           )
                   );

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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