firefly-iii/app/Models/TransactionJournalMeta.php
2016-02-10 16:26:42 +01:00

37 lines
923 B
PHP

<?php
/**
* TransactionJournalMeta.php
* Copyright (C) 2016 Sander Dorigo
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* Class TransactionJournalMeta
*
* @package FireflyIII\Models
* @property-read \FireflyIII\Models\TransactionJournal $transactionjournal
*/
class TransactionJournalMeta extends Model
{
protected $dates = ['created_at', 'updated_at'];
protected $fillable = ['transaction_journal_id', 'name', 'data'];
protected $table = 'journal_meta';
/**
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function transactionjournal(): BelongsTo
{
return $this->belongsTo('FireflyIII\Models\TransactionJournal');
}
}