mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
24 lines
450 B
PHP
24 lines
450 B
PHP
<?php namespace FireflyIII\Models;
|
|
|
|
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');
|
|
}
|
|
|
|
public function transactionJournal()
|
|
{
|
|
return $this->belongsTo('FireflyIII\Models\TransactionJournal');
|
|
}
|
|
|
|
}
|