protected function delete($step)
    {
        $stateCollection = $this->matchObjectStates('delete', $step);

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

        $objectStateService = $this->repository->getObjectStateService();

        foreach ($stateCollection as $state) {
            $objectStateService->deleteObjectState($state);
        }

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

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

        $objectStateService = $this->repository->getObjectStateService();

        foreach ($stateCollection as $state) {
            $objectStateService->deleteObjectState($state);
        }

        return $stateCollection;
    }
protected function delete ( $ step ) { $ stateCollection = $ this -> matchObjectStates ( 'delete' , $ step ) ; $ this -> setReferences ( $ stateCollection , $ step ) ; $ objectStateService = $ this -> repository -> getObjectStateService ( ) ; foreach ( $ stateCollection as $ state ) { $ objectStateService -> deleteObjectState ( $ state ) ; } return $ stateCollection ; }
Handles the deletion step of object state migrations.
Handles the deletion step of object state migrations .