On Feb 7, 2:44 pm, Baz <[EMAIL PROTECTED]> wrote:
> Hey AD7six,
>
> This sounds promising, but I'm unsure how to implement in my case.
>
>    1. What would I use as the 'join table' since I have a Has Many and a
>    Belongs To?
>
> ThanX in advance.

$this->bindModel(array('hasOne' => 'Dummy' => array('className' =>
'Date')));
$conditions = array('Dummy.date_start' => '> ' . $start);
$recursive = 1;
$results = $this->find('all', compact('conditions', 'recursive')); //
find all requests with at least one Date that starts in the future.

Or similar.

hth,

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