You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Tree/Entity/Repository/NestedTreeRepository.php
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -801,11 +801,11 @@ public function removeFromTree($node)
801
801
* Reorders $node's child nodes,
802
802
* according to the $sortByField and $direction specified
803
803
*
804
-
* @param object|null $node node from which to start reordering the tree; null will reorder everything
805
-
* @param string $sortByField field name to sort by
806
-
* @param string $direction sort direction : "ASC" or "DESC"
807
-
* @param bool $verify true to verify tree first
808
-
* @param bool $recursive true to also reorder further descendants, not just the direct children
804
+
* @param object|null $node node from which to start reordering the tree; null will reorder everything
805
+
* @param string|string[]|null $sortByField Field name or array of fields names to sort by
806
+
* @param string|string[] $direction Sort order ('asc'|'desc'|'ASC'|'DESC'). If $sortByField is an array, this may also be an array with matching number of elements
807
+
* @param bool $verify true to verify tree first
808
+
* @param bool $recursive true to also reorder further descendants, not just the direct children
809
809
*
810
810
* @return void
811
811
*/
@@ -836,9 +836,9 @@ public function reorder($node, $sortByField = null, $direction = 'ASC', $verify
836
836
/**
837
837
* Reorders all nodes in the tree according to the $sortByField and $direction specified.
838
838
*
839
-
* @param string $sortByField field name to sort by
840
-
* @param string $directionsort direction : "ASC" or "DESC"
841
-
* @param bool $verify true to verify tree first
839
+
* @param string|string[]|null $sortByField Field name or array of fields names to sort by
840
+
* @param string|string[] $direction Sort order ('asc'|'desc'|'ASC'|'DESC'). If $sortByField is an array, this may also be an array with matching number of elements
0 commit comments