public function removeShortcutsTo(ResourceNode $resourceNode)
    {
        $this->om->startFlushSuite();

        // retrieve the list of shortcuts associated to the ResourceNode
        /** @var Shortcut[] $shortcuts */
        $shortcuts = $this->repository->findBy(['target' => $resourceNode]);

        foreach ($shortcuts as $shortcut) {
            $this->om->remove($shortcut->getResourceNode());
        }
        $this->om->endFlushSuite();
    }
public function removeShortcutsTo(ResourceNode $resourceNode)
    {
        $this->om->startFlushSuite();

        // retrieve the list of shortcuts associated to the ResourceNode
        /** @var Shortcut[] $shortcuts */
        $shortcuts = $this->repository->findBy(['target' => $resourceNode]);

        foreach ($shortcuts as $shortcut) {
            $this->om->remove($shortcut->getResourceNode());
        }
        $this->om->endFlushSuite();
    }
public function removeShortcutsTo ( ResourceNode $ resourceNode ) { $ this -> om -> startFlushSuite ( ) ; // retrieve the list of shortcuts associated to the ResourceNode /** @var Shortcut[] $shortcuts */ $ shortcuts = $ this -> repository -> findBy ( [ 'target' => $ resourceNode ] ) ; foreach ( $ shortcuts as $ shortcut ) { $ this -> om -> remove ( $ shortcut -> getResourceNode ( ) ) ; } $ this -> om -> endFlushSuite ( ) ; }
Removes all shortcuts associated to a resource.

@param ResourceNode $resourceNode

@todo delete through the normal resource lifecycle
Removes all shortcuts associated to a resource .