From 0620830b10b1301cdc752f93245791cd6c695309 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 15 Jan 2016 22:23:01 +0100 Subject: [PATCH] Move from getDates to array dates. --- app/Models/TransactionJournal.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/Models/TransactionJournal.php b/app/Models/TransactionJournal.php index 7187e13eeb..ca160f5da5 100644 --- a/app/Models/TransactionJournal.php +++ b/app/Models/TransactionJournal.php @@ -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. *