This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

“Modern Family” actress Sarah Hyland has obtained a restraining order against her ex-boyfriend after he allegedly choked and threatened to kill her, court records show.

A Los Angeles County judge issued the order days before her ex, 24-year-old Matthew Prokop, was due to be released from rehab. She alleged in court records that the rehab center’s director warned her to “seek this order immediately due to Mr. Prokop’s mental state and attitude toward me.”

During the pair’s 4-year relationship, the 23-year-old actress, who portrays Haley Dunphy in the ABC sitcom, alleged that Prokop repeatedly abused her verbally and physically.

Superior Court Judge Andrea C. Thompson granted the order Sept. 19 that forbids Prokop from being within 100 yards of Hyland, her home, her workplace and her vehicle.

Click here to read the full story on LATimes.com.