schema.yml:
Category
  actAs: [NestedSet]
...

fixtures.yml:
Category:
  NestedSet: true
  c0:
    name: cat0
  c1:
    name: cat1
    children:
      c2:
        name: cat2
  c3:
    name: cat3
    children:
      c4:
        name: cat4

A query "SELECT * FROM .. ORDER BY lft asc" results in an incorrect
ordering c0,c1,c3,c2,c4.

It should be c0,c1,c2,c3,c4

The problem is, that c0, c1 and c3 get 1 as lft-value which is
incorrect: http://en.wikipedia.org/wiki/Nested_set_model

You can workaround with hasManyRoots = true and .. ORDER BY root_id
asc, lft asc
But doctrine shouldn't assign a value multiple times to lft since it's
not a nestedSet anymore?!

Or what's up here?

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to