mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-24 23:38:41 +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->setPlain((string) ($request->getData('plain') ?? ''));
|
||||
$doc->setContent((string) ($request->getData('plain') ?? ''));
|
||||
$doc->setCreatedAt(new \DateTime('now'));
|
||||
$doc->setCreatedBy($request->getHeader()->getAccount());
|
||||
|
||||
EditorDocMapper::create($doc);
|
||||
|
|
|
|||
|
|
@ -178,18 +178,6 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable
|
|||
$this->createdBy = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime $createdAt
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setCreatedAt(\DateTime $createdAt)
|
||||
{
|
||||
$this->createdAt = $createdAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user