Re-format mappers

This commit is contained in:
Dennis Eichhorn 2018-05-31 19:47:26 +02:00
parent d74e7518be
commit ca84e70aba
2 changed files with 9 additions and 9 deletions

View File

@ -38,7 +38,7 @@ class CommentListMapper extends DataMapperAbstract
* @since 1.0.0
*/
protected static $columns = [
'comments_list_id' => ['name' => 'comments_list_id', 'type' => 'int', 'internal' => 'id'],
'comments_list_id' => ['name' => 'comments_list_id', 'type' => 'int', 'internal' => 'id'],
];
/**
@ -49,10 +49,10 @@ class CommentListMapper extends DataMapperAbstract
*/
protected static $hasMany = [
'comments' => [
'mapper' => CommentMapper::class,
'table' => 'comments_comment',
'dst' => 'comments_comment_list',
'src' => null,
'mapper' => CommentMapper::class,
'table' => 'comments_comment',
'dst' => 'comments_comment_list',
'src' => null,
],
];

View File

@ -37,11 +37,11 @@ class CommentMapper extends DataMapperAbstract
* @since 1.0.0
*/
protected static $columns = [
'comments_comment_id' => ['name' => 'comments_comment_id', 'type' => 'int', 'internal' => 'id'],
'comments_comment_title' => ['name' => 'comments_comment_title', 'type' => 'string', 'internal' => 'title'],
'comments_comment_id' => ['name' => 'comments_comment_id', 'type' => 'int', 'internal' => 'id'],
'comments_comment_title' => ['name' => 'comments_comment_title', 'type' => 'string', 'internal' => 'title'],
'comments_comment_content' => ['name' => 'comments_comment_content', 'type' => 'string', 'internal' => 'content'],
'comments_comment_list' => ['name' => 'comments_comment_list', 'type' => 'int', 'internal' => 'list'],
'comments_comment_ref' => ['name' => 'comments_comment_ref', 'type' => 'int', 'internal' => 'ref'],
'comments_comment_list' => ['name' => 'comments_comment_list', 'type' => 'int', 'internal' => 'list'],
'comments_comment_ref' => ['name' => 'comments_comment_ref', 'type' => 'int', 'internal' => 'ref'],
'comments_comment_created_by' => ['name' => 'comments_comment_created_by', 'type' => 'int', 'internal' => 'createdBy'],
'comments_comment_created_at' => ['name' => 'comments_comment_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
];