/**
  * Возвращает категорию
  * Применяется в бюджете
  * @return Category или null
  */
 public function getCategory()
 {
     if ($this->getType() == self::TYPE_TRANSFER && $this->getTransferAccount() && $this->getAccount() && $this->getTransferAccount()->isDebt() && !$this->getAccount()->isDebt()) {
         $category = Category::getDebtCategoryInstance($this->getUser());
     } else {
         $category = $this->_get('Category');
     }
     return $category;
 }