瀏覽代碼

Merge pull request #286 from calumbrodie/patch-1

Added orderBy to child mapping in .yml entity mapping example.
Gediminas Morkevicius 13 年之前
父節點
當前提交
17e7c9f75f
共有 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>