Skip to content

Commit

Permalink
Dev: added relation to default config
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac authored and TonisOrmisson committed Jul 14, 2017
1 parent 1acb980 commit 496f055
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/models/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ public function rules()
*/
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'globalConfig' => array(self::HAS_ONE, 'TemplateConfiguration', array('templates_name' => 'name') , 'condition'=>("sid IS NULL AND gsid IS NULL") ),
);
}

Expand Down

0 comments on commit 496f055

Please sign in to comment.