Re: Containable recursive find problem

2009-06-16 Thread Andreas Derksen
Hi Wilson, thats how my query looks like: $checklist = $this-Checklist-find('first', array('conditions' = array('Checklist.id' = $id), 'contain' = array( 'Product'

Re: Containable recursive find problem

2009-06-15 Thread Wilson
Hi Andreas, I'm trying to this same thing, but without success. Do you mind pasting your find logic here? On Jun 12, 9:20 am, Andreas Derksen andreasderk...@arcor.de wrote: Thanks, Works fine! Thought to complicated... :-) Containable behavior is really nice ;-) greets Andreas Martin

Containable recursive find problem

2009-06-12 Thread Andreas Derksen
Hi, im currently developing a checklist application witch has the following Models and relations: Checklist belongsTo Product Checklist hasMany Check Product HABTM Module Module hasMany Subjects Subject belongsTo Module So, what i want to do now is to generate tables like this: Checklist

Re: Containable recursive find problem

2009-06-12 Thread Martin Westin
You just go: 'contain' = array( 'Product' = array( 'conditions' = array('Product.id' = $productId), 'Module' = array( 'Subject' ) ), 'Check' ) That is: in contain you simply name the nearest associates and in each of those you name furhter associates to return. On Jun

Re: Containable recursive find problem

2009-06-12 Thread Andreas Derksen
Thanks, Works fine! Thought to complicated... :-) Containable behavior is really nice ;-) greets Andreas Martin Westin schrieb: You just go: 'contain' = array( 'Product' = array( 'conditions' = array('Product.id' = $productId), 'Module' = array( 'Subject' ) ),