Bundle/ViewReferenceBundle/Connector/ViewReferenceManager.php
public function removeReference(ViewReference $viewReference)
    {
        $referenceId = $viewReference->getId();
        if ($url = $this->repository->findValueForId('url', $referenceId)) {
            // Remove url
            $this->manager->removeUrl($url, $viewReference->getLocale());
        }
        // Remove reference
        $this->manager->remove($referenceId);
    }
public function removeReference(ViewReference $viewReference)
    {
        $referenceId = $viewReference->getId();
        if ($url = $this->repository->findValueForId('url', $referenceId)) {
            // Remove url
            $this->manager->removeUrl($url, $viewReference->getLocale());
        }
        // Remove reference
        $this->manager->remove($referenceId);
    }
public function removeReference ( ViewReference $ viewReference ) { $ referenceId = $ viewReference -> getId ( ) ; if ( $ url = $ this -> repository -> findValueForId ( 'url' , $ referenceId ) ) { // Remove url $ this -> manager -> removeUrl ( $ url , $ viewReference -> getLocale ( ) ) ; } // Remove reference $ this -> manager -> remove ( $ referenceId ) ; }
This method remove reference for a ViewReference.

@param ViewReference $viewReference
This method remove reference for a ViewReference .