Skip to content

Commit

Permalink
Dev: Fixed issue : broken relatins in QuestionAttribute model
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Feb 25, 2017
1 parent c8878f0 commit b81681a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions application/models/QuestionAttribute.php
Expand Up @@ -58,11 +58,8 @@ public function primaryKey()
*/
public function relations()
{
$alias = $this->getTableAlias();
return array(
'qid' => array(self::HAS_ONE, 'Questions', '',
'on' => "$alias.qid = questions.qid",
),
'qid' => array(self::BELONGS_TO, 'Question', 'qid', 'together' => true),
);
}

Expand Down

0 comments on commit b81681a

Please sign in to comment.