mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 20:22:07 +00:00
Model tests.
This commit is contained in:
@@ -38,14 +38,9 @@ class Component extends Firefly\Database\SingleTableInheritanceEntity
|
||||
protected $table = 'components';
|
||||
protected $subclassField = 'class';
|
||||
|
||||
public function transactions()
|
||||
{
|
||||
return $this->belongsToMany('Transaction');
|
||||
}
|
||||
|
||||
public function limits()
|
||||
{
|
||||
return $this->belongsTo('Limit');
|
||||
return $this->hasMany('Limit');
|
||||
}
|
||||
|
||||
public function transactionjournals()
|
||||
@@ -53,6 +48,11 @@ class Component extends Firefly\Database\SingleTableInheritanceEntity
|
||||
return $this->belongsToMany('TransactionJournal');
|
||||
}
|
||||
|
||||
public function transactions()
|
||||
{
|
||||
return $this->belongsToMany('Transaction');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo('User');
|
||||
|
Reference in New Issue
Block a user