/** * @return \yii\db\ActiveQuery */ public function getLogs() { return $this->hasMany(Logs::className(), ['LogEventId' => 'LogEventId']); }
/** * @return \yii\db\ActiveQuery */ public function getLogs() { return $this->hasMany(Logs::className(), ['UserId' => 'id']); }