Skip to content

Commit 65a798a

Browse files
authored
Update TestResultTable.php
ReferenceFields ATTEMPT and QUESTION
1 parent 40398d5 commit 65a798a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/TestResultTable.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,22 @@ public static function getMap()
3131
'data_type' => 'integer',
3232
'required' => true,
3333
),
34+
'ATTEMPT' => new Entity\ReferenceField(
35+
'ATTEMPT',
36+
'\Learning\AttemptTable',
37+
array('=this.ATTEMPT_ID' => 'ref.ID'),
38+
array('join_type' => 'LEFT')
39+
),
3440
'QUESTION_ID' => array(
3541
'data_type' => 'integer',
3642
'required' => true,
3743
),
44+
'QUESTION' => new Entity\ReferenceField(
45+
'QUESTION',
46+
'\Learning\QuestionTable',
47+
array('=this.QUESTION_ID' => 'ref.ID'),
48+
array('join_type' => 'LEFT')
49+
),
3850
'RESPONSE' => array(
3951
'data_type' => 'text',
4052
),

0 commit comments

Comments
 (0)