mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-21 11:58:41 +00:00
Type and cs fixes
This commit is contained in:
parent
a416fa9407
commit
bcb3d5bea8
|
|
@ -125,7 +125,7 @@ final class ApiController extends Controller
|
|||
$task->setPriority((int) $request->getData('priority'));
|
||||
|
||||
$element = new TaskElement();
|
||||
$element->addTo((int) ($request->getData('forward') ?? $request->getHeader()->getAccount()));
|
||||
$element->addTo(new NullAccount((int) ($request->getData('forward') ?? $request->getHeader()->getAccount())));
|
||||
$element->setCreatedBy($task->getCreatedBy());
|
||||
$element->setDue($task->getDue());
|
||||
$element->setPriority($task->getPriority());
|
||||
|
|
@ -289,11 +289,11 @@ final class ApiController extends Controller
|
|||
}
|
||||
|
||||
foreach ($tos as $to) {
|
||||
$element->addTo((int) $to);
|
||||
$element->addTo(new NullAccount((int) $to));
|
||||
}
|
||||
|
||||
foreach ($ccs as $cc) {
|
||||
$element->addCC((int) $cc);
|
||||
$element->addCC(new NullAccount((int) $cc));
|
||||
}
|
||||
|
||||
return $element;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ final class AccountRelationMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has one relation.
|
||||
*
|
||||
* @var array<string, array{mapper:string, self:string, by?:string}>
|
||||
* @var array<string, array{mapper:string, self:string, by?:string, column?:string}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $ownsOne = [
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ final class GroupRelationMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has one relation.
|
||||
*
|
||||
* @var array<string, array{mapper:string, self:string, by?:string}>
|
||||
* @var array<string, array{mapper:string, self:string, by?:string, column?:string}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $ownsOne = [
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class Task implements \JsonSerializable
|
|||
/**
|
||||
* Creator.
|
||||
*
|
||||
* @var int
|
||||
* @var Account
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected Account $createdBy;
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ class TaskElement implements \JsonSerializable
|
|||
/**
|
||||
* Groups who received this task element.
|
||||
*
|
||||
* @var GroupRelaction[]
|
||||
* @var GroupRelation[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected array $grpRelation = [];
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ final class TaskElementMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string}>
|
||||
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string, column?:string}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $hasMany = [
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ final class TaskMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string}>
|
||||
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string, column?:string}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $hasMany = [
|
||||
|
|
@ -97,7 +97,7 @@ final class TaskMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has one relation.
|
||||
*
|
||||
* @var array<string, array{mapper:string, self:string, by?:string}>
|
||||
* @var array<string, array{mapper:string, self:string, by?:string, column?:string}>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $ownsOne = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user