Here is the full exception message with trace messages. Any help please?

Fatal error: Uncaught exception 'Doctrine\ORM\Query\QueryException' with 
message 'SELECT first_name FROM [edited]_clients c' in 
/home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:41
Stack trace:
#0 
/home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(483):
 
Doctrine\ORM\Query\QueryException::dqlError('SELECT first_na...')
#1 
/home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(971):
 
Doctrine\ORM\Query\Parser->semanticalError('Class '[edited]...', Array)
#2 
/home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(1656):
 
Doctrine\ORM\Query\Parser->AbstractSchemaName()
#3 
/home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(1546):
 
Doctrine\ORM\Query\Parser->RangeVariableDeclaration()
#4 
/home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(1286):
 
Doctrine\ORM\Query\Parser->IdentificationVariableDeclaration()
#5 /home2/[edited]/composer/vendor/doctrine/orm/lib/Doct in 
/home2/[edited]/composer/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php
 
on line 63

On Saturday, February 1, 2014 4:09:19 PM UTC+3:30, Parsifal wrote:

> I did set my bootsrap.php line this:
>  
> // bootstrap.php
> require_once "../vendor/autoload.php";
> use Doctrine\ORM\Tools\Setup;
> use Doctrine\ORM\EntityManager;
> $paths = array(__DIR__."/src");
> $isDevMode = false;
> // the connection configuration
> $dbParams = array(
>     'driver'   => 'pdo_mysql',
>     'user'     => 'MY_DB_USERNAME',
>     'password' => 'MY_PASSWORD',
>     'dbname'   => 'MY_DB_NAME',
> );
> $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
> $entityManager = EntityManager::create($dbParams, $config);
> ==
> then cli-config.php like this:
>  
> require_once "bootstrap.php";
> return 
> \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet($entityManager);
> ===
> now I want to auto-generate yml files from mysql database running this 
> command:
> php ../vendor/bin/doctrine orm:convert-mapping --from-database yml /src
>  
> but I get this error:
> [Doctrine\DBAL\DBALException]
>   Unknown database type enum requested, 
> Doctrine\DBAL\Platforms\MySqlPlatform
>    may not support it.
>  
> how can I fix it and how can I auto-generate PHP models instead of yml?
> please advice. (pdo_mysql extension is installed on myserver).
>  
>  
>  
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to