mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-01-27 07:38:41 +00:00
Use global namespace+minor fixes
This commit is contained in:
parent
bb09cdc541
commit
71bf98b3f5
|
|
@ -297,7 +297,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
|||
/**
|
||||
* Get created by
|
||||
*
|
||||
* @return mixed
|
||||
* @return int|\phpOMS\Account\Account
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -48,6 +48,12 @@ final class NewsArticleMapper extends DataMapperAbstract
|
|||
'news_created_at' => ['name' => 'news_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