function destroy() { $GLOBALS["DB"]->exec_DELETEquery(self::getDataTable(), self::getPrimaryKey() . "='" . $GLOBALS["DB"]->quote($this->getPrimary()) . "'"); }
public function destroy() { $oContacts = $this->getContactsBaseRequester()->execute(); foreach ($oContacts as $contact) { $contact->destroy(); } parent::destroy(); }