Skip to content

Commit

Permalink
Dev: Add relation between models Survey and TemplateConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jun 21, 2018
1 parent e68dd23 commit 744777b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/models/Survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ public function relations()
'quotas' => array(self::HAS_MANY, 'Quota', 'sid', 'order'=>'name ASC'),
'surveymenus' => array(self::HAS_MANY, 'Surveymenu', array('survey_id' => 'sid')),
'surveygroup' => array(self::BELONGS_TO, 'SurveysGroups', array('gsid' => 'gsid')),
'templateModel' => array(self::HAS_ONE, 'Template', array('name' => 'template'))
'templateModel' => array(self::HAS_ONE, 'Template', array('name' => 'template')),
'templateConfiguration' => array(self::HAS_ONE, 'TemplateConfiguration', array('sid' => 'sid'))
);
}

Expand Down

1 comment on commit 744777b

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great :) 👍

Please sign in to comment.