Fix local casting overriding class casting
This commit is contained in:
parent
b8f606b0f1
commit
952bb1e38e
@ -17,12 +17,6 @@ abstract class Catalog extends Model
|
|||||||
{
|
{
|
||||||
protected static $includeSubSecTime = FALSE;
|
protected static $includeSubSecTime = FALSE;
|
||||||
|
|
||||||
protected $casts = [
|
|
||||||
'created_manual' => 'datetime',
|
|
||||||
'subsectime' => 'int',
|
|
||||||
'thumbnail' => PostgresBytea::class,
|
|
||||||
];
|
|
||||||
|
|
||||||
public const fs = 'nas';
|
public const fs = 'nas';
|
||||||
|
|
||||||
private ?string $move_reason;
|
private ?string $move_reason;
|
||||||
|
@ -16,8 +16,10 @@ class Photo extends Abstracted\Catalog
|
|||||||
public const config = 'photo';
|
public const config = 'photo';
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
'created'=>'datetime:Y-m-d H:i:s',
|
'created' => 'datetime:Y-m-d H:i:s',
|
||||||
'thumbnail'=>PostgresBytea::class,
|
'created_manual' => 'datetime:Y-m-d H:i:s',
|
||||||
|
'subsectime' => 'int',
|
||||||
|
'thumbnail' => PostgresBytea::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
protected static $includeSubSecTime = TRUE;
|
protected static $includeSubSecTime = TRUE;
|
||||||
|
@ -9,7 +9,8 @@ class Video extends Abstracted\Catalog
|
|||||||
public const config = 'video';
|
public const config = 'video';
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
'created'=>'datetime:Y-m-d H:i:s',
|
'created' => 'datetime:Y-m-d H:i:s',
|
||||||
|
'created_manual' => 'datetime:Y-m-d H:i:s',
|
||||||
];
|
];
|
||||||
|
|
||||||
// Media Object
|
// Media Object
|
||||||
|
Loading…
Reference in New Issue
Block a user