Fix wiki and qa relation

This commit is contained in:
Dennis Eichhorn 2017-04-01 15:26:13 +02:00
parent 70a27d4a47
commit 9f6efa10fc
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ class QAAnswerMapper extends DataMapperAbstract
'qa_answer_answer' => ['name' => 'qa_answer_answer', 'type' => 'string', 'internal' => 'answer'], 'qa_answer_answer' => ['name' => 'qa_answer_answer', 'type' => 'string', 'internal' => 'answer'],
'qa_answer_question' => ['name' => 'qa_answer_question', 'type' => 'int', 'internal' => 'question'], 'qa_answer_question' => ['name' => 'qa_answer_question', 'type' => 'int', 'internal' => 'question'],
'qa_answer_status' => ['name' => 'qa_answer_status', 'type' => 'int', 'internal' => 'status'], 'qa_answer_status' => ['name' => 'qa_answer_status', 'type' => 'int', 'internal' => 'status'],
'qa_answer_accepted' => ['name' => 'qa_answer_accepted', 'type' => 'int', 'internal' => 'isAccepted'], 'qa_answer_accepted' => ['name' => 'qa_answer_accepted', 'type' => 'bool', 'internal' => 'isAccepted'],
'qa_answer_created_by' => ['name' => 'qa_answer_created_by', 'type' => 'int', 'internal' => 'createdBy'], 'qa_answer_created_by' => ['name' => 'qa_answer_created_by', 'type' => 'int', 'internal' => 'createdBy'],
'qa_answer_created_at' => ['name' => 'qa_answer_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], 'qa_answer_created_at' => ['name' => 'qa_answer_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
]; ];

View File

@ -62,8 +62,8 @@ class QAQuestionMapper extends DataMapperAbstract
'badges' => [ 'badges' => [
'mapper' => QABadgeMapper::class, 'mapper' => QABadgeMapper::class,
'table' => 'qa_question_badge', 'table' => 'qa_question_badge',
'dst' => 'qa_question_badge_badge', 'src' => 'qa_question_badge_badge',
'src' => 'qa_question_badge_question', 'dst' => 'qa_question_badge_question',
], ],
'answers' => [ 'answers' => [
'mapper' => QAAnswerMapper::class, 'mapper' => QAAnswerMapper::class,