getEntityManager() et getDoctrine() dans Symfony2

Quelle est la différence entre ces deux énoncés:

$this->getDoctrine()->getEntityManager()->getRepository();

$this->getDoctrine()->getRepository();

Est la différence se rapportent à toute la programmation orientée objet concept, je suis absent?

$this->getDoctrine()->getEntityManager() est obsolète dans Symfony 2

OriginalL'auteur NightOwl85 | 2011-11-29