A New York high school teacher has pleaded guilty to performing oral sex on a 14-year-old boy on ;multiple occasions and in multiple locations' but she has been spared prison time.

Dori Myers, 29, a social studies teacher at The New School of Leadership and The Arts in The Bronx who is married to a Rockland County Sheriff’s deputy, entered her plea on Wednesday and was sentenced to 10 years of probation.

Myers also will have to register as a sex offender, but she will not be required to surrender her New York state teaching license.

Disgraced: Bronx teacher Dori Myers, 29 (pictured in court earlier this year), on Wednesday pleaded guilty to a criminal sex act for performing oral sex on a 14-year-old student

Myers wa sa social studies teacher at The New School of Leadership and The Arts in The Bronx

The educator was arrested in January after being accused of repeatedly performing oral sex on a 14-year-old boy, thought to be one of Myers' students.

Police launched an investigation after the victim told one of his classmates.

That classmate told a school administrator, who then notified police, according to the Post.

A co-worker also claimed to have seen her massaging the alleged victim.

The criminal complaint claims the assault took place somewhere in Upper Manhattan on November 1, 2017.

Persecutors asked the presiding judge on Wednesday to sentence Myers to two years in prison and order her to give up her license, reported theNew York Post.

Myers was sentenced to 10 years of probation and will have to register as a sex offender

Myers is pictured here with her husband, Rockland County Sheriff's Deputy Matt Myers

Her defense attorney said Myers will be fired by the New York Department of Education, but he asked the court not to deny her the chance to teach adults in the future.

‘She still is a talented teacher and has those skills, and I don’t see any reason to destroy her ability to make a living and to contribute to society in a positive way,’ Andrew Stoll said.

Myers is scheduled to return to court for her official sentencing on September 12, after which her probation will begin.