diff --git a/Models/CommentListMapper.php b/Models/CommentListMapper.php index a04d382..4ee69b2 100644 --- a/Models/CommentListMapper.php +++ b/Models/CommentListMapper.php @@ -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, ], ]; diff --git a/Models/CommentMapper.php b/Models/CommentMapper.php index 2521f12..eacac55 100644 --- a/Models/CommentMapper.php +++ b/Models/CommentMapper.php @@ -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'], ];