diff --git a/Models/QAAnswerMapper.php b/Models/QAAnswerMapper.php index 8f2b195..e7401ca 100644 --- a/Models/QAAnswerMapper.php +++ b/Models/QAAnswerMapper.php @@ -35,12 +35,12 @@ final class QAAnswerMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'qa_answer_id' => ['name' => 'qa_answer_id', 'type' => 'int', 'internal' => 'id'], - 'qa_answer_answer' => ['name' => 'qa_answer_answer', 'type' => 'string', 'internal' => 'answer'], - 'qa_answer_question' => ['name' => 'qa_answer_question', 'type' => 'int', 'internal' => 'question'], - 'qa_answer_status' => ['name' => 'qa_answer_status', 'type' => 'int', 'internal' => 'status'], - '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_id' => ['name' => 'qa_answer_id', 'type' => 'int', 'internal' => 'id'], + 'qa_answer_answer' => ['name' => 'qa_answer_answer', 'type' => 'string', 'internal' => 'answer'], + 'qa_answer_question' => ['name' => 'qa_answer_question', 'type' => 'int', 'internal' => 'question'], + 'qa_answer_status' => ['name' => 'qa_answer_status', 'type' => 'int', 'internal' => 'status'], + '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_at' => ['name' => 'qa_answer_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], ]; diff --git a/Models/QACategoryMapper.php b/Models/QACategoryMapper.php index 4abcc48..e78dc9c 100644 --- a/Models/QACategoryMapper.php +++ b/Models/QACategoryMapper.php @@ -34,9 +34,9 @@ final class QACategoryMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'qa_category_id' => ['name' => 'qa_category_id', 'type' => 'int', 'internal' => 'id'], - 'qa_category_name' => ['name' => 'qa_category_name', 'type' => 'string', 'internal' => 'name'], - 'qa_category_parent' => ['name' => 'qa_category_parent', 'type' => 'int', 'internal' => 'parent'], + 'qa_category_id' => ['name' => 'qa_category_id', 'type' => 'int', 'internal' => 'id'], + 'qa_category_name' => ['name' => 'qa_category_name', 'type' => 'string', 'internal' => 'name'], + 'qa_category_parent' => ['name' => 'qa_category_parent', 'type' => 'int', 'internal' => 'parent'], ]; /** diff --git a/Models/QAQuestionMapper.php b/Models/QAQuestionMapper.php index 1a40bf1..ddf4738 100644 --- a/Models/QAQuestionMapper.php +++ b/Models/QAQuestionMapper.php @@ -35,13 +35,13 @@ final class QAQuestionMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'qa_question_id' => ['name' => 'qa_question_id', 'type' => 'int', 'internal' => 'id'], - 'qa_question_title' => ['name' => 'qa_question_title', 'type' => 'string', 'internal' => 'name'], - 'qa_question_language' => ['name' => 'qa_question_language', 'type' => 'string', 'internal' => 'language'], - 'qa_question_question' => ['name' => 'qa_question_question', 'type' => 'string', 'internal' => 'question'], - 'qa_question_status' => ['name' => 'qa_question_status', 'type' => 'int', 'internal' => 'status'], - 'qa_question_category' => ['name' => 'qa_question_category', 'type' => 'int', 'internal' => 'category'], - 'qa_question_created_by' => ['name' => 'qa_question_created_by', 'type' => 'int', 'internal' => 'createdBy'], + 'qa_question_id' => ['name' => 'qa_question_id', 'type' => 'int', 'internal' => 'id'], + 'qa_question_title' => ['name' => 'qa_question_title', 'type' => 'string', 'internal' => 'name'], + 'qa_question_language' => ['name' => 'qa_question_language', 'type' => 'string', 'internal' => 'language'], + 'qa_question_question' => ['name' => 'qa_question_question', 'type' => 'string', 'internal' => 'question'], + 'qa_question_status' => ['name' => 'qa_question_status', 'type' => 'int', 'internal' => 'status'], + 'qa_question_category' => ['name' => 'qa_question_category', 'type' => 'int', 'internal' => 'category'], + 'qa_question_created_by' => ['name' => 'qa_question_created_by', 'type' => 'int', 'internal' => 'createdBy'], 'qa_question_created_at' => ['name' => 'qa_question_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], ];