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