Sulu\Bundle\ContactBundle\Contact\AbstractContactManager::deleteAllRelations PHP Méthode

deleteAllRelations() public méthode

clears all relational data from entity and deletes it.
public deleteAllRelations ( $entity )
$entity
    public function deleteAllRelations($entity)
    {
        $this->deleteNotes($entity);
        $this->deleteAddresses($entity);
        $this->deleteEmails($entity);
        $this->deleteFaxes($entity);
        $this->deletePhones($entity);
        $this->deleteUrls($entity);
    }

Usage Example

Exemple #1
0
 /**
  * {@inheritDoc}
  */
 public function deleteAllRelations($entity)
 {
     parent::deleteAllRelations($entity);
     // add bank-accounts for accounts
     $this->deleteBankAccounts($entity);
 }
All Usage Examples Of Sulu\Bundle\ContactBundle\Contact\AbstractContactManager::deleteAllRelations