Hi,

I'm a little bit lost about how to shape my query with the containable 
behaviour.

There are two models:
A hasMany B
B belongsTo A

B has a date-field

Now I'd like to get one random data set out of A which has either
- no belonging entries in B
or
- only entries in B where date is more than 1 month ago

Is this even possible with Containable or do I have to do several 
queries and fumble around afterwards with PHP?

Regards
Guenther

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