mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 19:31:01 -06:00
22 lines
446 B
PHP
22 lines
446 B
PHP
<?php namespace FireflyIII\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Transaction extends Model
|
|
{
|
|
|
|
public function account()
|
|
{
|
|
return $this->belongsTo('FireflyIII\Models\Account');
|
|
}
|
|
|
|
public function transactionJournal()
|
|
{
|
|
return $this->belongsTo('FireflyIII\Models\TransactionJournal');
|
|
}
|
|
public function getDates()
|
|
{
|
|
return ['created_at', 'updated_at','deleted_at'];
|
|
}
|
|
}
|