Hi Ludek,
Yes, I did try this on the latest version (3.2.7.1330) before creating this issue. I've just exported an example entity from it and this is what was created:
Foo:
type: entity
table: foo
fields:
left:
type: integer
nullable: true
column: lft
gedmo:
treeLeft:
right:
type: integer
nullable: true
column: rgt
gedmo:
treeRight:
level:
type: integer
nullable: true
gedmo:
treeLevel:
oneToMany:
children:
targetEntity: Foo
mappedBy: parent
orderBy:
left: ASC
manyToOne:
parent:
targetEntity: Foo
inversedBy: children
joinColumns:
parent:
referencedColumnName: id
onDelete: CASCADE
gedmo:
treeParent:
gedmo:
tree:
type: nested