mirror of
https://github.com/Karaka-Management/oms-EventManagement.git
synced 2026-01-25 23:38:41 +00:00
Fix installation/mapper
This commit is contained in:
parent
e50d26d8ef
commit
a45ada8f5d
|
|
@ -19,6 +19,7 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
|
|||
use phpOMS\DataStorage\Database\Query\Builder;
|
||||
use phpOMS\DataStorage\Database\Query\Column;
|
||||
use phpOMS\DataStorage\Database\RelationType;
|
||||
use Modules\Tasks\Models\TaskMapper;
|
||||
|
||||
/**
|
||||
* Mapper class.
|
||||
|
|
@ -52,6 +53,21 @@ class EventMapper extends DataMapperAbstract
|
|||
'eventmanagement_event_created_at' => ['name' => 'eventmanagement_event_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
|
||||
];
|
||||
|
||||
/**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $hasMany = [
|
||||
'tasks' => [
|
||||
'mapper' => TaskMapper::class,
|
||||
'table' => 'eventmanagement_task_relation',
|
||||
'dst' => 'eventmanagement_task_relation_dst',
|
||||
'src' => 'eventmanagement_task_relation_src',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Has one relation.
|
||||
*
|
||||
|
|
@ -65,15 +81,6 @@ class EventMapper extends DataMapperAbstract
|
|||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $hasMany = [
|
||||
];
|
||||
|
||||
/**
|
||||
* Primary table.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user