Just a note to hopefully help others avoid some confusion ...

When using the Tree Behaviour, the table should be setup such that it
allows NULL, with it being the default. I know the
http://book.cakephp.org/view/228/Basic-Usage page shows the SQL as
such; however, I have this crazy habit of not allowing null if it
doesn't have to be.
The docs don't clearly state it must be null, so figured it would be
ok. However, after getting frustrated with the `reorder()` function, I
finally discovered that parent_id can't be '0', but 'null' if it's at
the top.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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