Hi Wilson,
thats how my query looks like:
$checklist = $this-Checklist-find('first', array('conditions'
= array('Checklist.id' = $id),
'contain' =
array(
'Product'
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
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
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
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'
)
),