コード例 #1
0
ファイル: ArticlePresenter.php プロジェクト: uestla/easyblog
 public function processArticleForm(Form $form, $values)
 {
     if ($this->article === NULL) {
         $article = $this->articles->createEntity();
     } else {
         $article = $this->article;
     }
     $article->setTitle($values->title);
     $article->setContent($values->content);
     $this->articles->persist($article);
 }