/** * @return \yii\db\ActiveQuery */ public function getMail() { return $this->hasOne(Mails::className(), ['id' => 'mail_id']); }