Chef Mario Batali's longstanding battle with his own wait staff came to a close with the celeb chef being forced to pay millions to settle a class-action lawsuit, according to documents released Wednesday.

The suit, filed in July 2010, accused the well-known restaurateur along with his business partner, Joe Bastianich, of skimming tips from 2004 to 2012.

Batali, who owns a number of successful eateries in New York City, was ruled against and now must dish out $5.2 million to his captains, servers, waiters, bussers, runners, back waiters, bartenders and/or barbacks who worked at one of his restaurants between July 22, 2004 and Feb. 14, 2012.

It isn't clear how much each employee will receive, but the sum will reportedly be based on the length of service at the Batali restaurants: Babbo, Bar Jamon, Casa Mono, Del Posto, Esca, Lupa, Otto and Tarry Lodge.