A Texas middle school teacher is accused of having a sexual relationship with her seventh-grade student, revealing in texts that she “had feelings” for the girl, according to officials.

Whitney Grunder Laidlaw, a Cornerstone Academy teacher, was arrested Wednesday on charges of improper relationship and sexual assault of a child, news station KPRC reported.

Police said the teacher allegedly started texting the 14-year-old girl, who was in her hip-hop class, after they exchanged phone numbers at some point during the school year.

Laidlaw reportedly would send sexually explicit photos and messages when the pair communicated through text, Instagram and Snapchat, according to police.

Near the end of the school year, Laidlaw allegedly admitted to the teen that she developed feelings for her, KPRC reported.

The pair began to meet up once summer break started and had several sexual encounters in the teacher’s car, according to police.

Police were notified about the alleged relationship after the girl’s father found messages from the teacher on her phone.

Laidlaw was booked at Harris County Jail, where she was released from on bail and ordered not to contact the girl, according to the Houston Chronicle.

The educator was reportedly removed the classroom last week and placed on paid leave.

“We are outraged by this alleged conduct,” Spring Branch Independent School District said in a statement. “These allegations, if true, are a complete breach of the trust our children, our community, and we place in our educators.”