A San Diego County teacher is accused of having an inappropriate relationship with a student.