Teacher accused of having relationship with student