From 59bc835c8078c269d109905648cf84df1453a8c1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 4 Mar 2017 20:18:11 +0100 Subject: [PATCH] Bug fixes from unit test --- Models/NewsArticleMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/NewsArticleMapper.php b/Models/NewsArticleMapper.php index dfb668c..e556fdc 100644 --- a/Models/NewsArticleMapper.php +++ b/Models/NewsArticleMapper.php @@ -33,7 +33,7 @@ class NewsArticleMapper extends DataMapperAbstract */ static protected $columns = [ 'news_id' => ['name' => 'news_id', 'type' => 'int', 'internal' => 'id'], - 'news_created_by' => ['name' => 'news_created_by', 'type' => 'string', 'internal' => 'createdBy'], + 'news_created_by' => ['name' => 'news_created_by', 'type' => 'int', 'internal' => 'createdBy'], 'news_publish' => ['name' => 'news_publish', 'type' => 'DateTime', 'internal' => 'publish'], 'news_title' => ['name' => 'news_title', 'type' => 'string', 'internal' => 'title'], 'news_plain' => ['name' => 'news_plain', 'type' => 'string', 'internal' => 'plain'],