firefly-iii/app/Models/Category.php
2015-02-07 13:15:40 +01:00

24 lines
485 B
PHP

<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
public function getDates()
{
return ['created_at', 'updated_at', 'deleted_at'];
}
public function transactionjournals()
{
return $this->belongsToMany('FireflyIII\Models\TransactionJournal', 'category_transaction_journal', 'category_id');
}
public function user()
{
return $this->belongsTo('FireflyIII\User');
}
}