private function createRelatedArticlesBox($article) { $relatedArticlesBox = new RelatedArticles($article->getNumber()); $this->em->persist($relatedArticlesBox); $this->em->flush(); return $relatedArticlesBox; }