mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
21 lines
325 B
PHP
21 lines
325 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
class Component extends Eloquent
|
||
|
{
|
||
|
public function componentType()
|
||
|
{
|
||
|
return $this->belongsTo('ComponentType');
|
||
|
}
|
||
|
|
||
|
public function transactions()
|
||
|
{
|
||
|
return $this->belongsToMany('Transaction');
|
||
|
}
|
||
|
|
||
|
public function user()
|
||
|
{
|
||
|
return $this->belongsTo('User');
|
||
|
}
|
||
|
|
||
|
}
|