/** * @param int $id * * @return void */ public function deleteTaxSet($id) { $taxSetEntity = $this->queryContainer->queryTaxSet($id)->findOne(); if ($taxSetEntity) { $taxSetEntity->delete(); } }
/** * @param int $id * * @return bool */ public function taxSetExists($id) { $taxSetQuery = $this->queryContainer->queryTaxSet($id); return $taxSetQuery->count() > 0; }