mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-29 01:38:41 +00:00
Use global namespace+minor fixes
This commit is contained in:
parent
020d2af33e
commit
5a1116aac8
|
|
@ -238,6 +238,9 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable
|
|||
return (string) \json_encode($this->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return $this->toArray();
|
||||
|
|
|
|||
|
|
@ -36,6 +36,12 @@ final class EditorDocMapper extends DataMapperAbstract
|
|||
'editor_doc_created_at' => ['name' => 'editor_doc_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
|
||||
];
|
||||
|
||||
/**
|
||||
* Belongs to.
|
||||
*
|
||||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
'createdBy' => [
|
||||
'mapper' => AccountMapper::class,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user