浏览代码

Added orderBy to child mapping in .yml entity mapping example. Omitting this causes children to be pulled in the wrong order which can be confusing.

Calum Brodie 13 年之前
父节点
当前提交
a42f18ba7e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      doc/tree.md

+ 2 - 0
doc/tree.md

@@ -263,6 +263,8 @@ Entity\Category:
     children:
       targetEntity: Entity\Category
       mappedBy: parent
+      orderBy:
+        lft: ASC
 ```
 
 <a name="xml-mapping"></a>