src/Sulu/Bundle/ContactBundle/Contact/AbstractContactManager.php
public function deleteAllRelations($entity)
    {
        $this->deleteNotes($entity);
        $this->deleteAddresses($entity);
        $this->deleteEmails($entity);
        $this->deleteFaxes($entity);
        $this->deleteSocialMediaProfiles($entity);
        $this->deletePhones($entity);
        $this->deleteUrls($entity);
    }
public function deleteAllRelations($entity)
    {
        $this->deleteNotes($entity);
        $this->deleteAddresses($entity);
        $this->deleteEmails($entity);
        $this->deleteFaxes($entity);
        $this->deleteSocialMediaProfiles($entity);
        $this->deletePhones($entity);
        $this->deleteUrls($entity);
    }
public function deleteAllRelations ( $ entity ) { $ this -> deleteNotes ( $ entity ) ; $ this -> deleteAddresses ( $ entity ) ; $ this -> deleteEmails ( $ entity ) ; $ this -> deleteFaxes ( $ entity ) ; $ this -> deleteSocialMediaProfiles ( $ entity ) ; $ this -> deletePhones ( $ entity ) ; $ this -> deleteUrls ( $ entity ) ; }
clears all relational data from entity and deletes it.

@param ContactInterface $entity
clears all relational data from entity and deletes it .