doctrine2

What is the difference between refresh and persist in doctrine 2?

What is the difference between $em = $this->getDoctrine()->getManager(); $em->persist($entity); $em->flush(); And $em = $this->getDoctrine()->getManager(); $em->refresh($entity); Thanks.