/** * @return \yii\db\ActiveQuery */ public function getTemplate() { return $this->hasOne(Template::className(), array('id' => 'template_id')); }
/** * @return \yii\db\ActiveQuery */ public function getTemplate() { return $this->hasOne(Template::className(), ['id' => 'template']); }