Ryan Dorsey, left, and Naya Rivera arrive at an event at the Beverly Wilshire hotel in Beverly Hills, Calif. Picture: AP

Naya Rivera and Ryan Dorsey are no longer married after their relationship was dissolved by Los Angeles Superior Court this week.

The former 'Glee' star's tumultuous marriage with the 34-year-old actor was officially dissolved by Los Angeles Superior Court this week - two years after the brunette beauty first filed the legal papers - and they have both agreed to share joint custody of their two-year-old son Josey, according to documents obtained by The Blast.

READ: Naya Rivera arrested for assaulting her husband

It's also believed the former couple have waived the right to financially support each other.

The divorce comes six months after Naya was arrested for allegedly hitting Ryan in an argument over their little one during Thanksgiving weekend in Chesapeake, West Virginia.

Ryan called the police on the 31-year-old actress but the domestic battery charge was later dismissed after the hunk decided he didn't want to press charges anymore. 

Ryan previously posted a statement about the alleged domestic battery incident on his social media accounts, where he asked for "positivity and love" during this "difficult time".

He wrote: "This is a difficult time for everyone in the family especially for Naya and I. This isn't some reality show, this is our life, and I ask that everyone especially the media please respect our privacy and treat us/this situation how you would want a loved one to be treated. Perhaps with kindness, respect, without judgment, and as negative a situation this is, with positivity and love. Thanks."

However, a week after the alleged incident, Naya refiled for divorce, citing "irreconcilable differences".

The refiling came just two months after she'd called off their divorce proceedings when the pair - who wed in 2014 - reconciled following their split in November 2016.

After papers were filed in 2016, they released a joint statement in which they said they would continue to be "great co-parenting partners" for their son.

The statement read: "After much consideration, we have made the decision to end our marriage. Our priority is and always will be our beautiful son that we share together. We will continue to be great co-parenting partners for him. We ask for respect and privacy for our family during this difficult time."