mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
21 lines
339 B
PHP
21 lines
339 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
class Transaction extends Eloquent
|
||
|
{
|
||
|
|
||
|
public function account()
|
||
|
{
|
||
|
return $this->belongsTo('Account');
|
||
|
}
|
||
|
|
||
|
public function transactionJournal()
|
||
|
{
|
||
|
return $this->belongsTo('TransactionJournal');
|
||
|
}
|
||
|
|
||
|
public function components()
|
||
|
{
|
||
|
return $this->belongsToMany('Component');
|
||
|
}
|
||
|
}
|