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