Hi All,

Propel nested set behaviour is brilliant BUT does anyone know how to
create a fixtures file for it?
I can't manually calculate the left right values for anything more
than a few children so it renders this frustratingly impaired.

Have seen a solution where you also add an adjacency list parent_id,
import data via the adjacency list model with blank nested set stuff
and then have a post data load task that rebuilds the nested set left
and right.
http://benlumley.co.uk/2009/04/10/making-fixtures-work-with-symfony-propel-and-nested-set/
The guy did a great job working this out but as he points out it is a
very ugly hack and leaves a redundant column in the db just to cope
with fixture loads.

Anyone got any ideas/thoughts that I could run with on how this could
be more elegantly achieved?

Cheers,

Paul

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to