mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-15 07:58:42 +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
|
* Get created by
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return int|\phpOMS\Account\Account
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,12 @@ final class NewsArticleMapper extends DataMapperAbstract
|
||||||
'news_created_at' => ['name' => 'news_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
|
'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 = [
|
protected static $belongsTo = [
|
||||||
'createdBy' => [
|
'createdBy' => [
|
||||||
'mapper' => AccountMapper::class,
|
'mapper' => AccountMapper::class,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user