aboutsummaryrefslogtreecommitdiff
path: root/src/controller/ArticleController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/ArticleController.php')
-rw-r--r--src/controller/ArticleController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller/ArticleController.php b/src/controller/ArticleController.php
index 3b39335..078754a 100644
--- a/src/controller/ArticleController.php
+++ b/src/controller/ArticleController.php
@@ -49,7 +49,7 @@ class ArticleController
49 $date->setTimestamp($timestamp); 49 $date->setTimestamp($timestamp);
50 50
51 $article = new Article($content, $date); // le "current" timestamp est obtenu par la BDD 51 $article = new Article($content, $date); // le "current" timestamp est obtenu par la BDD
52 $article_node = new Node('article', 'i' . (string)$timestamp, [], count($node->getChildren()) + 1, $node, $node->getPage(), $article); 52 $article_node = new Node('post', 'i' . (string)$timestamp, [], count($node->getChildren()) + 1, $node, $node->getPage(), $article);
53 } 53 }
54 54
55 $entityManager->persist($article_node); 55 $entityManager->persist($article_node);