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