I have a problem with my symfony project when I try to exit()

13 Views Asked by At

I was trying to add data into the doctrine using:

 $entityManager = $this->getDoctrine()->getManager();
 $user = new User();
 $user->setName('Oamogetswe');
 $entityManager->persist($user);
 exit($entityManager->flush());

But all I am getting is a An exception occurred in the driver: could not find driver error message. I am using SQLITE3

0

There are 0 best solutions below