Exemple #1
0
 public function createArticle($position, $volume, $vedette)
 {
     $article = new Article();
     $article->setPosition($position);
     $article->setVolume($volume);
     $article->setVedette($vedette);
     $em = $this->getDoctrine()->getManager();
     $em->persist($article);
     $em->flush();
     return $article;
 }