getArticleTypes() public method

Get articleTypes
public getArticleTypes ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection
コード例 #1
0
 /**
  * @param Journal $journal
  */
 private function normalizeSetting(Journal $journal)
 {
     $count = $journal->getArticleTypes()->count();
     if ($count > 0) {
         return;
     }
     foreach ($this->allArticleTypes as $articleType) {
         $journal->addArticleType($articleType);
     }
     $this->em->persist($journal);
 }