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

@ -16,8 +16,10 @@ class Photo extends Abstracted\Catalog
public const config = 'photo';
protected $casts = [
'created'=>'datetime:Y-m-d H:i:s',
'thumbnail'=>PostgresBytea::class,
'created' => 'datetime:Y-m-d H:i:s',
'created_manual' => 'datetime:Y-m-d H:i:s',
'subsectime' => 'int',
'thumbnail' => PostgresBytea::class,
];
protected static $includeSubSecTime = TRUE;

View File

@ -9,7 +9,8 @@ class Video extends Abstracted\Catalog
public const config = 'video';
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