Sulu\Bundle\ContactBundle\Contact\AbstractContactManager::deleteAllRelations PHP Method

deleteAllRelations() public method

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

コード例 #1
0
ファイル: AccountManager.php プロジェクト: kriswillis/sulu
 /**
  * {@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