hi all,
i have a deep model association
handle by the containable behaviour:

ModelD hasMany ModelDF
ModelD belonsTo ModelDS
ModelDF belongsTo ModelD, ModelDSF
ModelDS hasMany ModelD, ModelDSF

var $contain = array(
        'DS' => array(
                'DSF' => array(
                        'DF' => array()
                )
        )
)

so... i expect just one DF, cause
every DF is associated with one DSF
and, above all, with one D
but, instead, the query does not make a join
with the main model D and so it return a list of DF!

i tried to force
'conditions' => array('DF.d_id = D.id')
but if i put it either in the
contain array or using unbind/bindModel
it answers
"Unknown column D.id in where clause"
(not a join with D)

hope it is clear enough... :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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