I have a table called shop_categories

Shop_Categories ( id int(7) parent_id  int(7) title varchar(150) )

Model
class ShopCategory extends AppModel {

        public $persistModel = true;
        public $name = 'ShopCategory';

        public $hasMany = 'ShopProduct';
}

When I use it like this I do not get the child categories for the
current category

public function edit($id) {
   $this->ShopCategory->findAllThreaded('id =
'.$id,'id,name,parent_id')
}

But when I use it like this
$this->ShopCategory->findAllThreaded(null,'id,name,parent_id')
All the categories get listed but the children categories for the
respective category gets showed too.

Returns an array with the current 
?>


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

Reply via email to