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
@@ -886,11 +886,11 @@ public function removeFromTree($node)
886
886
* Reorders $node's child nodes,
887
887
* according to the $sortByField and $direction specified
888
888
*
889
-
* @param object|null $node node from which to start reordering the tree; null will reorder everything
890
-
* @param string $sortByField field name to sort by
891
-
* @param string $direction sort direction : "ASC" or "DESC"
892
-
* @param bool $verify true to verify tree first
893
-
* @param bool $recursive true to also reorder further descendants, not just the direct children
889
+
* @param object|null $node node from which to start reordering the tree; null will reorder everything
890
+
* @param string|string[]|null $sortByField Field name or array of fields names to sort by
891
+
* @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
892
+
* @param bool $verify true to verify tree first
893
+
* @param bool $recursive true to also reorder further descendants, not just the direct children
894
894
*
895
895
* @return void
896
896
*/
@@ -921,9 +921,9 @@ public function reorder($node, $sortByField = null, $direction = 'ASC', $verify
921
921
/**
922
922
* Reorders all nodes in the tree according to the $sortByField and $direction specified.
923
923
*
924
-
* @param string $sortByField field name to sort by
925
-
* @param string $directionsort direction : "ASC" or "DESC"
926
-
* @param bool $verify true to verify tree first
924
+
* @param string|string[]|null $sortByField Field name or array of fields names to sort by
925
+
* @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