Both sides are mum on the confidential settlement, with Gloria Allred, who represented plaintiff Kristina Hagan, simply telling E! News: "The matter has been resolved."

There was no immediate comment from either Boreanaz or Fox, which was also named as a defendant.

The drama all started last July, when Hagan publicly went after the married Boreanaz, accusing the 41-year-old actor of hitting on her following her stint on the show, including sending unsolicited sexts and a cellphone picture of his penis.

That's not all.

According to the filing, Boreanaz offered to give her a ride home, during which he told her he was attempting to find right role for her, saying he was "the boss" who "could make things happen for her." Then he allegedly took the wanna-be actress to a park, where, according to the suit, he tried to force himself on her.

"[David] attempted to kiss her and touch her breasts but she pushed him away," the lawsuit stated. "[He then] unzipped his pants, pulled out his penis and began stroking it until he ejaculated."

Hagan claims that she managed to push Boreanaz away, but that didn't stop his advances. Later that same month, per court papers, he tried to put the moves on her again in his trailer.

The suit couldn't have come at a worse time for Boreanaz—it hit just two months after he publicly admitted that he had cheated on wife Jaime Bergman. He claimed to be coming forward because he feared the other woman, whom he didn't name, was trying to extort money from him.