protected function delete($step)
    {
        $sectionCollection = $this->matchSections('delete', $step);

        $this->setReferences($sectionCollection, $step);

        $sectionService = $this->repository->getSectionService();

        foreach ($sectionCollection as $section) {
            $sectionService->deleteSection($section);
        }

        return $sectionCollection;
    }
protected function delete($step)
    {
        $sectionCollection = $this->matchSections('delete', $step);

        $this->setReferences($sectionCollection, $step);

        $sectionService = $this->repository->getSectionService();

        foreach ($sectionCollection as $section) {
            $sectionService->deleteSection($section);
        }

        return $sectionCollection;
    }
protected function delete ( $ step ) { $ sectionCollection = $ this -> matchSections ( 'delete' , $ step ) ; $ this -> setReferences ( $ sectionCollection , $ step ) ; $ sectionService = $ this -> repository -> getSectionService ( ) ; foreach ( $ sectionCollection as $ section ) { $ sectionService -> deleteSection ( $ section ) ; } return $ sectionCollection ; }
Handles the section delete migration action
Handles the section delete migration action