SACRAMENTO (AP) — The California Senate has advanced a bill that prevents defendants in civil cases from claiming the sexual consent of a minor as a defense.

It comes after the Los Angeles Unified School District successfully argued last year that a 14-year-old girl who had sex with a male teacher shared responsibility, despite her age.

READ MORE: Silver Alert Issued For Missing 62-Year-Old John Frias In Lancaster

The bill by Democratic Sen. Ricardo Lara was approved unanimously Thursday.

Lara, of Bell Gardens, told lawmakers that SB14 closes a loophole because defendants are not allowed to use similar arguments in criminal cases.

READ MORE: Pursuit Ends With Driver In Custody Following Standoff In La Crescenta; Passenger Also In Custody

LAUSD removed the defense attorney after a civil jury cleared the district of wrongdoing.

The teacher in the case, Elkis Hermida, was sentenced in 2011 to three years in prison for lewd acts against a child.

The bill now moves to the Assembly.

MORE NEWS: Multiple People Injured In 3-Car Crash In Van Nuys

(Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)