Charlie and the Chocolate Factory
(2005)

Charlie Bucket and 4 other children find golden tickets that invite them to a tour of the mysterious Wonka chocolate factory.  Each of the other 4 children are dispatched in the same way as the original movie.  Augustus Gloop falls in the chocolate river and is sucked through the drain pipe.  Violet Beauregard chews the experimental gum and blows up into a giant blueberry.  Veruca Salt is labelled a "bad nut" by the squirrels and pushed down the garbage chute.  Mike Teevee is teleported into a miniaturized television version.

Willy Wonka (Johnny Depp) tells Charlie that Charlie can have the whole factory as Wonka's heir, but he must leave his family and never see them again.  In a framing story, we learn that Wonka's father was a cold distant dentist, who never let Wonka have any chocolate or candy as a child.  Wonka left home as a teen and has never been back.  Charlie refuses to leave his family.  Wonka returns a few weeks later to learn why Charlie is so attached to his family.  Charlie goes with Wonka back to Wonka's childhood home to see his father.  Wonka takes Charlie as his heir, with the family. 

Thanks Joseph C!