I have started learn Symfony. After reading the documentation of Symfony I wanted to try make my application. I have already created a mysql database with the some data, but I can't connect to it within doctrine. As i read in the documentation, if i want to import my database into orm, i have to execute this commands:
php app/console doctrine:mapping:import TestBundle yml
php app/console doctrine:generate:entities TestBundle
But i got message
[Symfony\Component\Debug\Exception\UndefinedFunctionException]
Attempted to call function "mysqli_init" from namespace "Doctrine\DBAL\Driver\Mysqli".
I successfully use mysqli in my flat-php application, but can't use in doctrine. Also the data for database connection is correct. Any ideas?