Hello, I am unable to generate entities from an existing database. Or connect to it ... I have ZendFramework 2, Doctrine. At the same time, the connection is successful, although ... I am not sure because the connection to the database through the doctrine has not yet fully understood the mechanism. And according to TulBar it is clear that the connection was successful, there are no errors. But when trying to create an entity through the command:

call doctrine-module orm:convert-mapping annotation module/Application/src/ --namespace="Application\Entity\\" --from-database 

And in the end I get: http://prntscr.com/d8cxd2 Please tell me what could be the problem and how to solve it ...

    1 answer 1

    You have not installed the PDO driver. You can enable it in php.ini

    Perhaps the driver works for the web, but is not connected for the console version. You can see which php.ini is used in your console by the command

     php --ini 
    • Thank you) Yes it is. You just had to do it all on the local server and transfer it to the global one) - Vanya Vodyanitsky