| @@ 113-126 (lines=14) @@ | ||
| 110 | /** |
|
| 111 | * Handles the delete step of object state group migrations |
|
| 112 | */ |
|
| 113 | protected function delete($step) |
|
| 114 | { |
|
| 115 | $groupsCollection = $this->matchObjectStateGroups('delete', $step); |
|
| 116 | ||
| 117 | $this->setReferences($groupsCollection, $step); |
|
| 118 | ||
| 119 | $objectStateService = $this->repository->getObjectStateService(); |
|
| 120 | ||
| 121 | foreach ($groupsCollection as $objectStateGroup) { |
|
| 122 | $objectStateService->deleteObjectStateGroup($objectStateGroup); |
|
| 123 | } |
|
| 124 | ||
| 125 | return $groupsCollection; |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * @param string $action |
|
| @@ 129-142 (lines=14) @@ | ||
| 126 | /** |
|
| 127 | * Handles the deletion step of object state migrations. |
|
| 128 | */ |
|
| 129 | protected function delete($step) |
|
| 130 | { |
|
| 131 | $stateCollection = $this->matchObjectStates('delete', $step); |
|
| 132 | ||
| 133 | $this->setReferences($stateCollection, $step); |
|
| 134 | ||
| 135 | $objectStateService = $this->repository->getObjectStateService(); |
|
| 136 | ||
| 137 | foreach ($stateCollection as $state) { |
|
| 138 | $objectStateService->deleteObjectState($state); |
|
| 139 | } |
|
| 140 | ||
| 141 | return $stateCollection; |
|
| 142 | } |
|
| 143 | ||
| 144 | /** |
|
| 145 | * @param string $action |
|