mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-13 00:38:42 +00:00
Remove deprecated setCreatedAt
This commit is contained in:
parent
6a26e88186
commit
b71bac6fa7
|
|
@ -243,7 +243,6 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
$doc->setTitle((string) ($request->getData('title') ?? ''));
|
$doc->setTitle((string) ($request->getData('title') ?? ''));
|
||||||
$doc->setPlain((string) ($request->getData('plain') ?? ''));
|
$doc->setPlain((string) ($request->getData('plain') ?? ''));
|
||||||
$doc->setContent((string) ($request->getData('plain') ?? ''));
|
$doc->setContent((string) ($request->getData('plain') ?? ''));
|
||||||
$doc->setCreatedAt(new \DateTime('now'));
|
|
||||||
$doc->setCreatedBy($request->getHeader()->getAccount());
|
$doc->setCreatedBy($request->getHeader()->getAccount());
|
||||||
|
|
||||||
EditorDocMapper::create($doc);
|
EditorDocMapper::create($doc);
|
||||||
|
|
|
||||||
|
|
@ -178,18 +178,6 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable
|
||||||
$this->createdBy = $id;
|
$this->createdBy = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param \DateTime $createdAt
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
public function setCreatedAt(\DateTime $createdAt)
|
|
||||||
{
|
|
||||||
$this->createdAt = $createdAt;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user