/**
  *
  */
 public function deleteTransaction2Category()
 {
     /** @var \common\models\Category $model */
     $model = $this->owner;
     Transaction2Category::deleteAll(['category_id' => $model->id]);
 }
 /**
  * @param integer $transactionId
  *
  * @return boolean
  */
 public static function deleteTransaction2CategoryByTransactionId($transactionId)
 {
     return Transaction2Category::deleteAll('transaction_id = :transaction_id', [':transaction_id' => $transactionId]);
 }