Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent bb09cdc541
commit 71bf98b3f5
2 changed files with 7 additions and 1 deletions

View File

@ -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
*/ */

View File

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