HOUSTON – A Texas middle school teacher accused of getting pregnant by her eighth-grade student was sentenced to 10 years in prison Friday.

Investigators say Alexandria Vera was 24-years-old when she got pregnant by her 13-year-old student during a sexual relationship that lasted nine months.

Court documents show after she got pregnant, she had an abortion because school authorities started questioning her.

Vera was charged with continuous sex abuse of a child and later pleaded guilty to a lesser charge of aggravated sex assault of a child.

The eighth-grader’s family allegedly supported the relationship and invited Vera to family gatherings, according to court documents.

Since the summer, Vera has been out of jail on a $100,000 bond.

Vera will be eligible for parole after five years.