I set up a response form to comments posted on my music and texts that I publish to know they are suitable. My comments are posted well and I manage to retrieve the id of the comment posted to which I want to respond (via js) but when I want to save my response in my table, I get this error: The "App\Entity\Comment" entity has a repositoryClass set to "App\Entity\CommentRepository", but this is not a valid class. Check your class naming. If this is meant to be a service id, make sure this service exists and is tagged with "doctrine.repository_service". My Home controller (here are the articles and comments): // PARTIE COMMENTAIRES // On crée le formulaire vierge (on instancie) $comment = new Comment; // On génère le formulaire $commentForm = $this->createForm(CommentType::class, $comment); $commentForm->handleRequest($request); // Traitement du formulaire if($commentForm->isSubmitted() && $commentForm->isValid()){ $com...
A site where you can share knowledge