Hello,

I have an error i do not understand with treebehavior.

<?php
class Category extends AppModel {
    var $name = 'Category';
    var $actsAs = array('Tree');
    var $displayField = 'title';
...
}
?>

When generating the tree from the Categories controller :
$this->Category->generatetreelist(null, null, null, '__');

I get a normal result :

Array
(
    [1] => PREM
    [8] => __PREMprem
    [7] => __PREMdeux
    [3] => DEUX
    [4] => __DEUXprem
    ...
)

The error arrives when i try to generate the tree from related
models :

$this->Publication->Category->generatetreelist(null, null, null,
'__');

SQL Error: 1064: You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'generatetreelist' at line 1
Query: generatetreelist

Is this a normal behavior of Tree ? Isn't it build to function from
related models too ?

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