| @@ 160-168 (lines=9) @@ | ||
| 157 | $newParentLocation = $locationService->loadLocation($parentLocationId); |
|
| 158 | ||
| 159 | $locationService->moveSubtree($location, $newParentLocation); |
|
| 160 | } elseif (isset($this->dsl['swap_with_location'])) { |
|
| 161 | // Swap locations |
|
| 162 | $swapLocationId = $this->dsl['swap_with_location']; |
|
| 163 | $swapLocationId = $this->referenceResolver->resolveReference($swapLocationId); |
|
| 164 | ||
| 165 | $locationToSwap = $this->matchLocationByKey($swapLocationId); |
|
| 166 | ||
| 167 | $locationService->swapLocation($location, $locationToSwap); |
|
| 168 | } |
|
| 169 | ||
| 170 | $locationCollection[$key] = $location; |
|
| 171 | } |
|
| @@ 101-109 (lines=9) @@ | ||
| 98 | ||
| 99 | $userGroup = $userService->updateUserGroup($userGroup, $updateStruct); |
|
| 100 | ||
| 101 | if (isset($this->dsl['parent_group_id'])) { |
|
| 102 | $parentGroupId = $this->dsl['parent_group_id']; |
|
| 103 | $parentGroupId = $this->referenceResolver->resolveReference($parentGroupId); |
|
| 104 | ||
| 105 | $newParentGroup = $userService->loadUserGroup($parentGroupId); |
|
| 106 | ||
| 107 | // Move group to new parent |
|
| 108 | $userService->moveUserGroup($userGroup, $newParentGroup); |
|
| 109 | } |
|
| 110 | ||
| 111 | $userGroupCollection[$key] = $userGroup; |
|
| 112 | } |
|