Hello -

I'm new to cake, and am attempting to prototype an application for
evaluation,
using postgres as the backend.

I'm trying to create a business products catalog using the 'Tree'
behaviour, and
currently the 'moveup()'/'movedown()' features are not working

(although it appears that setting the parent directly is)

I'm using the cake docs themselves along with this tutorial:

http://bvirtual.nl/2009/11/easy-trees-with-tree-behavior-in.html

(of course I adapted the schema to match the pg standard mapping)

I don't mind debugging this a bit - but I'm not quite sure where to
start -
basically, it seems to me like the 'lft' and 'rght' values are not
being set
properly, which makes the moveup/movedown calls fail, but I'm not
100% sure as I can't find anything suggesting what algorithm these
should be.

I guess my questions are:
- any pointers as to the state of pg w/cake
- anyone looking at this particular problem / usage (Tree+pg)
- any pointers to documenting tree algorithms

I'll likely setup a mysql db to cross-test against.. but thought I'd
ask here
first..

Like the framework (minus this failure :) - so don't mind getting my
hands dirty a bit to
make this work, if need be - am interested in following this app
through to completion
to see how the framework works as a hwole..

Thanks

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to