/** * Méthode permettant la suppression d'une ou plusieurs entrées * @param QueryCondition $pCondition Condition permettant de cibler l'entrée cible de la suppression * @return resource **/ public function delete($pCondition) { return Query::delete()->from($this->table)->setCondition($pCondition)->execute(); }
public function deleteById($pId) { Query::delete()->from('sil_user_links')->where('id_link', Query::EQUAL, $pId)->execute($this->handler); Query::delete()->from('sil_states')->where('id_link', Query::EQUAL, $pId)->execute($this->handler); return parent::deleteById($pId); }