mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
23 lines
437 B
PHP
23 lines
437 B
PHP
<?php namespace FireflyIII\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BudgetLimit extends Model
|
|
{
|
|
|
|
public function budget()
|
|
{
|
|
return $this->belongsTo('FireflyIII\Models\Budget');
|
|
}
|
|
|
|
public function limitrepetitions()
|
|
{
|
|
return $this->hasMany('FireflyIII\Models\LimitRepetition');
|
|
}
|
|
public function getDates()
|
|
{
|
|
return ['created_at', 'updated_at','startdate'];
|
|
}
|
|
|
|
}
|