Fatal error: Class 'core\mbrBundle\Entity\Candidat' not found in /home/stingers/security-ms.fr/src/front/frontBundle/Controller/FrontController.php on line 168
Attempted to load class "Candidat" from namespace "core\mbrBundle\Entity". Did you forget a "use" statement for another namespace? (500 Internal Server Error)

Symfony Exception

ClassNotFoundException

HTTP 500 Internal Server Error

Attempted to load class "Candidat" from namespace "core\mbrBundle\Entity".
Did you forget a "use" statement for another namespace?

Exception

Symfony\Component\Debug\Exception\ ClassNotFoundException

  1.      * @Template("frontBundle:pages:jobs.html.twig")
  2.      */
  3.     public function newCandidatAction(Request $request)
  4.     {
  5.         //-------------------- 
  6.         $candidat= new Candidat();
  7.             $form $this->createForm(CandidatType::class, $candidat);
  8.             if ($request->isMethod("POST") && $form->handleRequest($request)->isValid()) {
  9.                 //-----------------------
  10.                 $this->em()->persist($candidat);

Logs

Level Message

Stack Trace

ClassNotFoundException

Symfony\Component\Debug\Exception\ClassNotFoundException:
Attempted to load class "Candidat" from namespace "core\mbrBundle\Entity".
Did you forget a "use" statement for another namespace?

  at src/front/frontBundle/Controller/FrontController.php:168