public addArticleType ( |
||
$articleType | ||
return |
public function addArticleType(ArticleTypes $articleType)
{
$this->articleTypes[] = $articleType;
return $this;
}
/** * @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); }