From 5e41bea598ff38b3c520b69fd92ee3412e716df2 Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 9 Sep 2025 15:37:50 +0200 Subject: =?UTF-8?q?fin=20de=20l'utilisation=20du=20champ=20article=5Ftimes?= =?UTF-8?q?tamp=20de=20la=20table=20node,=20r=C3=A9solue=20erreur=20lorsqu?= =?UTF-8?q?e=20deux=20news=20sont=20cr=C3=A9=C3=A9es=20dans=20la=20m=C3=AA?= =?UTF-8?q?me=20minute=20(pas=20dans=20la=20m=C3=AAme=20seconde=20par=20co?= =?UTF-8?q?ntre)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/Director.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/controller/Director.php') 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 } else // avec $_GET['id'] dans l'URL { - $dql .= ' OR n.article_timestamp = :id'; + $dql .= ' OR n.id_node = :id'; $bulk_data = $this->entityManager ->createQuery($dql) ->setParameter('page', $this->page) @@ -105,10 +105,10 @@ class Director public function makeArticleNode(string $id = '', bool $get_section = false): bool { if($get_section){ - $dql = 'SELECT n, p FROM App\Entity\Node n LEFT JOIN n.parent p WHERE n.article_timestamp = :id'; + $dql = 'SELECT n, p FROM App\Entity\Node n LEFT JOIN n.parent p WHERE n.id_node = :id'; } else{ - $dql = 'SELECT n FROM App\Entity\Node n WHERE n.article_timestamp = :id'; + $dql = 'SELECT n FROM App\Entity\Node n WHERE n.id_node = :id'; } // n est l'article et p son $parent $bulk_data = $this->entityManager -- cgit v1.2.3