I was trying to use the symfony command line tools to rebuild my test database and I couldn’t get past this error:
>> doctrine Could not create database for c...o use near '-sb-test' at line 1 |
Turns out the issue is with the “-” in my test database name. Replacing the hyphens with underscores fixed the problem.
I reached the same problem but normally if you set quote identifier to true it must solve the problem. unfortunately for CLI command, it seems that doctrine creates a “temp connection” who don’t give a damn about any options (Doctrine/Connection.php line 1512)… so while this isn’t fixed, the best solution is to not use “-” in the database name 🙁
happy new year