$size_list = $this->ProductSize-
>generateList( array('ProductSize.product_id' => $product_id );

But a couple of notes.  You can probably get what you want by just
setting
$this->Product->recursive = 1;
before the findAllByCategoryId line.

You can also improve the $c_id= line, to
$c_id = $this->Category->field('id', array('name'=>$c_name));

This will get the id directly (no need for the ['Category']['id']
key), and will handle escaping the name (what if it has an actual "
symbol in there?).


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