mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-02-13 18:58:40 +00:00
Add createdBy belongs to
This commit is contained in:
parent
c2fcfe5e55
commit
bb3745d1b6
|
|
@ -91,7 +91,7 @@ class KanbanBoard implements \JsonSerializable
|
||||||
$this->description = $description;
|
$this->description = $description;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCreatedBy() : int
|
public function getCreatedBy()
|
||||||
{
|
{
|
||||||
return $this->createdBy;
|
return $this->createdBy;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||||
use phpOMS\DataStorage\Database\Query\Builder;
|
use phpOMS\DataStorage\Database\Query\Builder;
|
||||||
use phpOMS\DataStorage\Database\Query\Column;
|
use phpOMS\DataStorage\Database\Query\Column;
|
||||||
use phpOMS\DataStorage\Database\RelationType;
|
use phpOMS\DataStorage\Database\RelationType;
|
||||||
|
use Modules\Admin\Models\AccountMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mapper class.
|
* Mapper class.
|
||||||
|
|
@ -62,6 +63,13 @@ class KanbanBoardMapper extends DataMapperAbstract
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
static protected $belongsTo = [
|
||||||
|
'createdBy' => [
|
||||||
|
'mapper' => AccountMapper::class,
|
||||||
|
'src' => 'kanban_board_created_by',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Primary table.
|
* Primary table.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user