More code.

This commit is contained in:
James Cole
2015-02-07 13:15:40 +01:00
parent 07ad43f7a2
commit 6b54ef8398
23 changed files with 239 additions and 207 deletions

View File

@@ -10,6 +10,11 @@ class PiggyBank extends Model
return $this->belongsTo('FireflyIII\Models\Account');
}
public function getDates()
{
return ['created_at', 'updated_at', 'deleted_at', 'startdate', 'targetdate'];
}
public function piggyBankEvents()
{
return $this->hasMany('FireflyIII\Models\PiggyBankEvent');
@@ -24,8 +29,4 @@ class PiggyBank extends Model
{
return $this->morphMany('FireflyIII\Models\Reminder', 'remindersable');
}
public function getDates()
{
return ['created_at', 'updated_at','deleted_at','startdate','targetdate'];
}
}