I know this question have been asked a thousand of times, but I can't find a solution. I'm running Symfony 2 with a PostgreSql database (php running in MAMP, and PG DB on an another port and install).
I was running well (could have install the DB using the app/console create cmd) however now I can't use it anymore for updating the schema. Got the error :
PDO Exception, could not find driver error
I tried everything:
CLI
and phpInfo();
Found a solution, I just made an alias in my .bash_profile to the php used by the server to be sure that the CLI will use the good one.
alias phpmamp='/Applications/MAMP/bin/php/php5.4.4/bin/php'
Now it works.