mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Move from getDates to array dates.
This commit is contained in:
@@ -60,6 +60,7 @@ class TransactionJournal extends Model
|
|||||||
protected $fillable
|
protected $fillable
|
||||||
= ['user_id', 'transaction_type_id', 'bill_id', 'transaction_currency_id', 'description', 'completed', 'date', 'encrypted', 'tag_count'];
|
= ['user_id', 'transaction_type_id', 'bill_id', 'transaction_currency_id', 'description', 'completed', 'date', 'encrypted', 'tag_count'];
|
||||||
protected $hidden = ['encrypted'];
|
protected $hidden = ['encrypted'];
|
||||||
|
protected $dates = ['created_at', 'updated_at', 'date', 'deleted_at'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
@@ -146,15 +147,6 @@ class TransactionJournal extends Model
|
|||||||
return $this->hasMany('FireflyIII\Models\Transaction');
|
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.
|
* Save the model to the database.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user