public function loadArticleType() { $entity = new ArticleTypes(); $entity->setCurrentLocale($this->locale)->setName('Sample Article Type Name - ' . $this->locale)->setDescription('Sample Article Type Description - ' . $this->locale); $this->em->persist($entity); $this->em->flush(); return $entity->getId(); }