Board Thread:The Reference Desk/@comment-69.125.134.86-20130401025854

Okay, I don't understand what happened when the Doctor rescued River Song from time loop in the exploding TARDIS, then piloted the Pandorica into the TARDIS.

Did this take the TARDIS out of the time loop? How did the Pandorica affect the exploding TARDIS? Did it explode? Was history rewritten and it never actually was on the verge of exploding at all? And when time restarted and the Doctor was on the "other side" of the timeline, how was he and the TARDIS restored into existence by Amy's memory? 