firefly-iii/app/Models/Account.php

29 lines
437 B
PHP
Raw Normal View History

2015-02-05 21:52:16 -06:00
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class Account
*
* @package FireflyIII\Models
*/
2015-02-05 22:04:06 -06:00
class Account extends Model
{
2015-02-05 21:52:16 -06:00
2015-02-05 22:04:06 -06:00
public function accountMeta()
{
return $this->hasMany('AccountMeta');
}
public function accountType()
{
return $this->belongsTo('AccountType');
}
public function user()
{
return $this->belongsTo('User');
}
2015-02-05 21:52:16 -06:00
}