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

@@ -5,6 +5,11 @@ use Illuminate\Database\Eloquent\Model;
class PiggyBankEvent extends Model
{
public function getDates()
{
return ['created_at', 'updated_at', 'date'];
}
public function piggyBank()
{
return $this->belongsTo('FireflyIII\Models\PiggyBank');
@@ -14,9 +19,5 @@ class PiggyBankEvent extends Model
{
return $this->belongsTo('FireflyIII\Models\TransactionJournal');
}
public function getDates()
{
return ['created_at', 'updated_at','date'];
}
}