public function _saveTransaction($type, $amount, $desc, $cat, $ref)
	{
		$transaction = Transaction::blank()->set(array(
			'uid'         => $this->uid,
			'type'        => $type,
			'amount'      => $amount,
			'description' => $desc,
			'category'    => $cat,
			'referenceid' => $ref,
			'balance'     => $this->balance
		));

		if (!$transaction->save())
		{
			$this->setError($transaction->getError());

			return false;
		}

		return true;
	}