1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 07:27:39 +02:00

API: allow date attributes to be added

This commit is contained in:
Toby Zerner
2015-07-01 15:11:57 +09:30
parent c1595af84f
commit 3f32236379
3 changed files with 40 additions and 4 deletions

View File

@@ -47,7 +47,6 @@ class Discussion extends Model
*
* @var array
*/
protected $dates = ['start_time', 'last_time'];
/**
* An array of posts that have been added during this request.
@@ -62,6 +61,7 @@ class Discussion extends Model
* @var \Flarum\Core\Models\Post[]
*/
public $removedPosts = [];
protected static $dates = ['start_time', 'last_time'];
/**
* The user for which the state relationship should be loaded.