diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index 010d2f0..5a8500f 100644 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -238,6 +238,9 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable return (string) \json_encode($this->toArray()); } + /** + * {@inheritdoc} + */ public function jsonSerialize() { return $this->toArray(); diff --git a/Models/EditorDocMapper.php b/Models/EditorDocMapper.php index 27588e8..469502b 100644 --- a/Models/EditorDocMapper.php +++ b/Models/EditorDocMapper.php @@ -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> + * @since 1.0.0 + */ protected static $belongsTo = [ 'createdBy' => [ 'mapper' => AccountMapper::class,