Hello, me again ...

I had a look to the bindModel API ..I have tried different
combinations, but still not success it seems (looking at the debug
select traces) that the findAll does a lot of successive queries, but
does not actually make a query on the 2 tables at same time.
I am a bit lost in the way to write a condition in the binsModel since
it does not seem to affect the result of the query on the first table
...
In the binding I have writen some condition like this :

$cond = array('hasMany' => array(
                                                       'Offer' =>
array(

'conditions' => 'Offer.id IS NOT NULL AND Offer.user_id =
'.$this->c_user)));
$this->Application->bindModel($cond);

Basically wanted to find all the Applications that have offers and one
of the offers matches the current user.

I must do something very silly, but can't find it ..


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