Move from getDates to array dates.

This commit is contained in:
James Cole 2016-01-15 22:23:01 +01:00
parent 7ee25693aa
commit 0620830b10

View File

@ -60,6 +60,7 @@ class TransactionJournal extends Model
protected $fillable
= ['user_id', 'transaction_type_id', 'bill_id', 'transaction_currency_id', 'description', 'completed', 'date', 'encrypted', 'tag_count'];
protected $hidden = ['encrypted'];
protected $dates = ['created_at', 'updated_at', 'date', 'deleted_at'];
/**
* @codeCoverageIgnore
@ -146,15 +147,6 @@ class TransactionJournal extends Model
return $this->hasMany('FireflyIII\Models\Transaction');
}
/**
* @codeCoverageIgnore
* @return string[]
*/
public function getDates()
{
return ['created_at', 'updated_at', 'date', 'deleted_at'];
}
/**
* Save the model to the database.
*