This commit is contained in:
Dennis Eichhorn 2020-02-20 18:58:38 +01:00
parent 13a55f3400
commit a3e3ccb596
3 changed files with 6 additions and 6 deletions

View File

@ -33,14 +33,14 @@ final class CalendarMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, annotations?:array}>
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, readonly?:bool, annotations?:array}>
* @since 1.0.0
*/
protected static array $columns = [
'calendar_id' => ['name' => 'calendar_id', 'type' => 'int', 'internal' => 'id'],
'calendar_name' => ['name' => 'calendar_name', 'type' => 'string', 'internal' => 'name'],
'calendar_description' => ['name' => 'calendar_description', 'type' => 'string', 'internal' => 'description'],
'calendar_created_at' => ['name' => 'calendar_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
'calendar_created_at' => ['name' => 'calendar_created_at', 'type' => 'DateTime', 'internal' => 'createdAt', 'readonly' => true],
];
/**

View File

@ -29,7 +29,7 @@ final class EventMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, annotations?:array}>
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, readonly?:bool, annotations?:array}>
* @since 1.0.0
*/
protected static array $columns = [
@ -42,7 +42,7 @@ final class EventMapper extends DataMapperAbstract
'calendar_event_schedule' => ['name' => 'calendar_event_schedule', 'type' => 'int', 'internal' => 'schedule'],
'calendar_event_calendar' => ['name' => 'calendar_event_calendar', 'type' => 'int', 'internal' => 'calendar'],
'calendar_event_created_by' => ['name' => 'calendar_event_created_by', 'type' => 'int', 'internal' => 'createdBy'],
'calendar_event_created_at' => ['name' => 'calendar_event_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
'calendar_event_created_at' => ['name' => 'calendar_event_created_at', 'type' => 'DateTime', 'internal' => 'createdAt', 'readonly' => true],
];
/**

View File

@ -29,7 +29,7 @@ final class ScheduleMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, annotations?:array}>
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, readonly?:bool, annotations?:array}>
* @since 1.0.0
*/
protected static array $columns = [
@ -44,7 +44,7 @@ final class ScheduleMapper extends DataMapperAbstract
'schedule_start' => ['name' => 'schedule_start', 'type' => 'DateTime', 'internal' => 'start'],
'schedule_duration' => ['name' => 'schedule_duration', 'type' => 'int', 'internal' => 'duration'],
'schedule_end' => ['name' => 'schedule_end', 'type' => 'DateTime', 'internal' => 'end'],
'schedule_created_at' => ['name' => 'schedule_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
'schedule_created_at' => ['name' => 'schedule_created_at', 'type' => 'DateTime', 'internal' => 'createdAt', 'readonly' => true],
'schedule_created_by' => ['name' => 'schedule_created_by', 'type' => 'int', 'internal' => 'createdBy'],
];