Newscoop\Services\RelatedArticlesService::createRelatedArticlesBox PHP Method

createRelatedArticlesBox() private method

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