Files
firefly-iii/app/Models/TransactionGroup.php

47 lines
1007 B
PHP
Raw Normal View History

2016-05-20 08:57:45 +02:00
<?php
/**
* TransactionGroup.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
2016-05-20 08:57:45 +02:00
declare(strict_types = 1);
namespace FireflyIII\Models;
2015-02-27 16:48:33 +01:00
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
2016-11-18 20:06:08 +01:00
/**
* Class TransactionGroup
*
* @package FireflyIII\Models
*/
2015-02-27 16:48:33 +01:00
class TransactionGroup extends Model
{
use SoftDeletes;
2016-01-15 22:32:21 +01:00
protected $dates = ['created_at', 'updated_at', 'deleted_at'];
2015-02-27 16:48:33 +01:00
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
*/
public function transactionJournals()
2015-02-27 16:48:33 +01:00
{
return $this->belongsToMany('FireflyIII\Models\TransactionJournal');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user()
{
return $this->belongsTo('FireflyIII\User');
}
}