An undated photograph of Robert Cain, 31, a former Los Angeles police officer who was arrested in connection with the department’s cadet scandal in June 2017. (CBS News/Facebook)

LOS ANGELES (AP) — A former Los Angeles police officer has pleaded not guilty to having sex with a 15-year-old girl who was in the LAPD’s cadet program.

City News Service says Robert Cain entered pleas Tuesday to unlawful sexual intercourse, oral copulation involving a person under 16 and committing lewd acts on a child.

READ MORE: 3 Pop-Up Vaccination Sites To Open In Northeast San Fernando Valley

Prosecutors say Cain, a 10-year veteran, had a relationship with the girl last June.

Cain’s arrest resulted after police uncovered a scandal in which cadets were joyriding in police cars, using stun guns and other equipment and impersonating officers.

READ MORE: Driver Identified In Bizarre Pursuit Involving BMW Doing Donuts, Hitting Pedestrian

If convicted, Cain could face up to seven years and eight months in state prison.

He’s already been sentenced to two years in county jail on weapons violations stemming from a search of his home.

MORE NEWS: For 2nd Straight Year, San Diego Comic-Con Will Be Virtual

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast rewritten or redistributed.)