Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent 020d2af33e
commit 5a1116aac8
2 changed files with 9 additions and 0 deletions

View File

@ -238,6 +238,9 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable
return (string) \json_encode($this->toArray());
}
/**
* {@inheritdoc}
*/
public function jsonSerialize()
{
return $this->toArray();

View File

@ -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,