public function __construct(EntityManager $em) { $this->_em = $em; $this->_platform = $em->getConnection()->getDatabasePlatform(); }
/** * {@inheritdoc} */ public function __construct(EntityManagerInterface $em) { $this->em = $em; $this->platform = $this->getConnection()->getDatabasePlatform(); parent::__construct($em); }