diff --git a/src/Repository/CommentRepository.php b/src/Repository/CommentRepository.php index 25efd25..e26232e 100644 --- a/src/Repository/CommentRepository.php +++ b/src/Repository/CommentRepository.php @@ -27,7 +27,7 @@ class CommentRepository extends ServiceEntityRepository ->join('c.task', 't') ->andWhere('t.project = :project') ->setParameter('project', $project) - ->orderBy('c.createdAt', 'ASC') + ->orderBy('c.createdAt', 'DESC') ->getQuery() ->getResult() ; diff --git a/templates/project/show.html.twig b/templates/project/show.html.twig index 5d917f4..7b74428 100644 --- a/templates/project/show.html.twig +++ b/templates/project/show.html.twig @@ -105,11 +105,10 @@
- {{ project.name }} - {{ comment.task.project.name }} {{ comment.content|markdown_to_html }}