Преглед на файлове

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>