Newscoop\Services\RelatedArticlesService::getRelatedArticles PHP Méthode

getRelatedArticles() public méthode

Get related articles for article
public getRelatedArticles ( Article $article )
$article Newscoop\Entity\Article
    public function getRelatedArticles($article)
    {
        $relatedArticlesBox = $this->findRelatedArticlesBox($article);
        $relatedArticles = $this->em->getRepository('Newscoop\\Entity\\RelatedArticle')->getAllArticles($relatedArticlesBox)->getResult();
        return $relatedArticles;
    }