Fix local casting overriding class casting

This commit is contained in:
Deon George 2024-10-07 18:04:17 +11:00
parent b8f606b0f1
commit 952bb1e38e
3 changed files with 6 additions and 9 deletions

View File

@ -17,12 +17,6 @@ abstract class Catalog extends Model
{
protected static $includeSubSecTime = FALSE;
protected $casts = [
'created_manual' => 'datetime',
'subsectime' => 'int',
'thumbnail' => PostgresBytea::class,
];
public const fs = 'nas';
private ?string $move_reason;

View File

@ -17,6 +17,8 @@ class Photo extends Abstracted\Catalog
protected $casts = [
'created' => 'datetime:Y-m-d H:i:s',
'created_manual' => 'datetime:Y-m-d H:i:s',
'subsectime' => 'int',
'thumbnail' => PostgresBytea::class,
];

View File

@ -10,6 +10,7 @@ class Video extends Abstracted\Catalog
protected $casts = [
'created' => 'datetime:Y-m-d H:i:s',
'created_manual' => 'datetime:Y-m-d H:i:s',
];
// Media Object