From 4c3793ef796ed0e954cc7a4e55236ed439533b03 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 5 Jul 2017 16:56:26 +0200 Subject: [PATCH 1/2] Fixes belongs to bugs --- Models/NewsArticle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index 64da263..7ba85a9 100644 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -262,7 +262,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function getCreatedBy() : int + public function getCreatedBy() { return $this->createdBy; } @@ -273,7 +273,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCreatedBy(int $id) + public function setCreatedBy($id) { $this->createdBy = $id; } From 630ee93ca6d802065b5f9ac19b6f95e521a5368e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 9 Jul 2017 10:42:02 +0200 Subject: [PATCH 2/2] (Draft) Create risk management models Also fix some belongsTo in other mappers. --- Theme/Backend/news-dashboard.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Theme/Backend/news-dashboard.tpl.php b/Theme/Backend/news-dashboard.tpl.php index 3cfec26..d3d103a 100644 --- a/Theme/Backend/news-dashboard.tpl.php +++ b/Theme/Backend/news-dashboard.tpl.php @@ -45,7 +45,7 @@ echo $this->getData('nav')->render(); ?> isFeatured() ? '' : ''; ?> getText('TYPE' . $news->getType()); ?> getTitle(); ?> - getCreatedBy(); ?> + getCreatedBy()->getName1(); ?> getPublish()->format('Y-m-d'); ?>