Hello.
Can anyone help me with hacking findAllThreaded function for version
1.2.x ?

In 1.1.x it looked like it to set the root ID for function:

function findAllThreaded($root = null, $conditions = null, $fields =
null, $sort = null) {
    return $this->__doThread(Model::findAll($conditions, $fields,
$sort), $root);
}

But in 1.2.x findAllThreaded is deprecated:

function findAllThreaded($conditions = null, $fields = null, $order =
null) {
    return $this->find('threaded', compact('conditions', 'fields',
'order'));
}

How to supply to findAllThreaded function the root ID of a model which
I want to get all children from?

Thanks in advance,
Anna
--~--~---------~--~----~------------~-------~--~----~
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