aboutsummaryrefslogtreecommitdiff
path: root/src/controller/Director.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/Director.php')
-rw-r--r--src/controller/Director.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller/Director.php b/src/controller/Director.php
index 6ee0993..8be9b59 100644
--- a/src/controller/Director.php
+++ b/src/controller/Director.php
@@ -50,7 +50,7 @@ class Director
50 } 50 }
51 else // avec $_GET['id'] dans l'URL 51 else // avec $_GET['id'] dans l'URL
52 { 52 {
53 $dql .= ' OR n.article_timestamp = :id'; 53 $dql .= ' OR n.id_node = :id';
54 $bulk_data = $this->entityManager 54 $bulk_data = $this->entityManager
55 ->createQuery($dql) 55 ->createQuery($dql)
56 ->setParameter('page', $this->page) 56 ->setParameter('page', $this->page)
@@ -105,10 +105,10 @@ class Director
105 public function makeArticleNode(string $id = '', bool $get_section = false): bool 105 public function makeArticleNode(string $id = '', bool $get_section = false): bool
106 { 106 {
107 if($get_section){ 107 if($get_section){
108 $dql = 'SELECT n, p FROM App\Entity\Node n LEFT JOIN n.parent p WHERE n.article_timestamp = :id'; 108 $dql = 'SELECT n, p FROM App\Entity\Node n LEFT JOIN n.parent p WHERE n.id_node = :id';
109 } 109 }
110 else{ 110 else{
111 $dql = 'SELECT n FROM App\Entity\Node n WHERE n.article_timestamp = :id'; 111 $dql = 'SELECT n FROM App\Entity\Node n WHERE n.id_node = :id';
112 } 112 }
113 // n est l'article et p son $parent 113 // n est l'article et p son $parent
114 $bulk_data = $this->entityManager 114 $bulk_data = $this->entityManager