Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMailTemplate()
 {
     return $this->hasOne(MailTemplate::className(), ['id' => 'mail_template_id']);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMailTemplates()
 {
     return $this->hasMany(MailTemplate::className(), ['mail_template_group_id' => 'id']);
 }