Symptom:
Try to run php bin/console doctrine:database:drop
The symfony console complains about An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO) on my local environment, after having updated composer with symfonyflex-bridge
If I set the environment variable in the line executing the console, it's OK :
DATABASE_URL=mysql://MYUSER:MYPASSWORD@127.0.0.1:3306/MYDATABASE php bin/console doctrine:database:drop
If I bypass the symfonyflex-bridge (modifying its code), it's OK.
As I understand, the function mapPlatformShEnvironment should check that we are on platform.sh before doing anything ? (maybe by looking at $_ENV['PLATFORM_RELATIONSHIPS'] ?)
Context:
Symptom: Try to run
php bin/console doctrine:database:drop
The symfony console complains aboutAn exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
on my local environment, after having updated composer with symfonyflex-bridgeIf I set the environment variable in the line executing the console, it's OK :
DATABASE_URL=mysql://MYUSER:MYPASSWORD@127.0.0.1:3306/MYDATABASE php bin/console doctrine:database:drop
If I bypass the symfonyflex-bridge (modifying its code), it's OK.
As I understand, the function
mapPlatformShEnvironment
should check that we are on platform.sh before doing anything ? (maybe by looking at$_ENV['PLATFORM_RELATIONSHIPS']
?)