/** * @param EntityManager $em */ public function __construct(EntityManager $em) { $this->em = $em; $this->db = $em->getConnection(); $this->platform = $this->db->getDatabasePlatform(); $this->quotes = $em->getConfiguration()->getQuoteStrategy(); $this->uow = $this->em->getUnitOfWork(); }