mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
References
This commit is contained in:
@@ -5,6 +5,23 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class PiggyBank extends Model
|
||||
{
|
||||
|
||||
//
|
||||
public function account()
|
||||
{
|
||||
return $this->belongsTo('Account');
|
||||
}
|
||||
|
||||
public function piggyBankEvents()
|
||||
{
|
||||
return $this->hasMany('PiggyBankEvent');
|
||||
}
|
||||
|
||||
public function piggyBankRepetitions()
|
||||
{
|
||||
return $this->hasMany('PiggyBankRepetition');
|
||||
}
|
||||
|
||||
public function reminders()
|
||||
{
|
||||
return $this->morphMany('Reminder', 'remindersable');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user