Re: [symfony-users] [Symfony2] Problems creating sqlite database
Hi Brandon: Thanks for your answer but it didn't solve the problem, I'm still getting the same error (doctrine revision 5719f85) El 12/08/10 16:35, Brandon Turner escribió: On 8/12/10 3:00 AM, alfonso wrote: I'm trying to create an sqlite database for a pilot proyect: # file: symad/config/config_test.yml ... doctrine.dbal: driver: PDOSqlite dbname: %kernel.root_dir%/sf2cmf-test -- Try something like this: doctrine.dbal: driver: PDOSqlite path: %kernel.root_dir%/sf2cmf-test or doctrine.dbal: connections: default: driver: PDOSqlite path: %kernel.root_dir%/sfcmf-test -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] [Symfony2] Problems creating sqlite database
Hi Alexandre: I tried your configuration: doctrine.dbal: driver: PDOSQLite path: "%kernel.root_dir%/db.sql" user: root password: Unfortunately, the driver you are using doesn't work in my version of doctrine (revision 5719f85): [Doctrine\DBAL\DBALException] The given 'driverClass' Doctrine\DBAL\Driver\PDOSQLite\Driver has to implement the \Doctrine\DBAL\Driver interface. Looking up the doctrine files I cannot find the class Doctrine\DBAL\Driver\*PDOSSQLite*\Driver but Doctrine\DBAL\Driver\*PDOSqlite*\Driver Change the driver line back to "PDOSqlite" results in the same error: Could not create database for connection named /path/to/db.sql The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection() Maybe it's something wrong with doctrine? El 12/08/10 22:55, Alexandre Salomé escribió: Use path instead of dbname : I have this : doctrine.dbal: driver: PDOSQLite path: "%kernel.root_dir%/db.sql" user: root password: It works, here Le 12/08/10 10:00, alfonso a écrit : Hi: I keep on playing with Symfony2. I'm trying to create an sqlite database for a pilot proyect: # file: symad/config/config_test.yml ... doctrine.dbal: driver: PDOSqlite dbname: %kernel.root_dir%/sf2cmf-test -- Running the task: # php symad/console-test doctrine:database:create Results in the following error: PHP Notice: Undefined index: driver in /home/aalba/public_html/ symfony/symfony-cmf-website/src/vendor/doctrine/lib/vendor/doctrine- dbal/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php on line 54 Notice: Undefined index: driver in /home/aalba/public_html/symfony/ symfony-cmf-website/src/vendor/doctrine/lib/vendor/doctrine-dbal/lib/ Doctrine/DBAL/Schema/SqliteSchemaManager.php on line 54 Could not create database for connection named /home/aalba/public_html/ symfony/symfony-cmf-website/symad/sf2cmf-test The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection(). Am I missing some parameter or doing somethign wrong? using PDOMySql driver for the test environmenet works fine. Alfonso -- --- Alexandre Salomé -http://alexandre.salome.fr -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] [Symfony2] Problems creating sqlite database
Use path instead of dbname : I have this : doctrine.dbal: driver: PDOSQLite path: "%kernel.root_dir%/db.sql" user: root password: It works, here Le 12/08/10 10:00, alfonso a écrit : Hi: I keep on playing with Symfony2. I'm trying to create an sqlite database for a pilot proyect: # file: symad/config/config_test.yml ... doctrine.dbal: driver: PDOSqlite dbname: %kernel.root_dir%/sf2cmf-test -- Running the task: # php symad/console-test doctrine:database:create Results in the following error: PHP Notice: Undefined index: driver in /home/aalba/public_html/ symfony/symfony-cmf-website/src/vendor/doctrine/lib/vendor/doctrine- dbal/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php on line 54 Notice: Undefined index: driver in /home/aalba/public_html/symfony/ symfony-cmf-website/src/vendor/doctrine/lib/vendor/doctrine-dbal/lib/ Doctrine/DBAL/Schema/SqliteSchemaManager.php on line 54 Could not create database for connection named /home/aalba/public_html/ symfony/symfony-cmf-website/symad/sf2cmf-test The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection(). Am I missing some parameter or doing somethign wrong? using PDOMySql driver for the test environmenet works fine. Alfonso -- --- Alexandre Salomé - http://alexandre.salome.fr -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] [Symfony2] Problems creating sqlite database
On 8/12/10 3:00 AM, alfonso wrote: I'm trying to create an sqlite database for a pilot proyect: # file: symad/config/config_test.yml ... doctrine.dbal: driver: PDOSqlite dbname: %kernel.root_dir%/sf2cmf-test -- Try something like this: doctrine.dbal: driver: PDOSqlite path: %kernel.root_dir%/sf2cmf-test or doctrine.dbal: connections: default: driver: PDOSqlite path: %kernel.root_dir%/sfcmf-test -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] [Symfony2] Problems creating sqlite database
Hi: I keep on playing with Symfony2. I'm trying to create an sqlite database for a pilot proyect: # file: symad/config/config_test.yml ... doctrine.dbal: driver: PDOSqlite dbname: %kernel.root_dir%/sf2cmf-test -- Running the task: # php symad/console-test doctrine:database:create Results in the following error: PHP Notice: Undefined index: driver in /home/aalba/public_html/ symfony/symfony-cmf-website/src/vendor/doctrine/lib/vendor/doctrine- dbal/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php on line 54 Notice: Undefined index: driver in /home/aalba/public_html/symfony/ symfony-cmf-website/src/vendor/doctrine/lib/vendor/doctrine-dbal/lib/ Doctrine/DBAL/Schema/SqliteSchemaManager.php on line 54 Could not create database for connection named /home/aalba/public_html/ symfony/symfony-cmf-website/symad/sf2cmf-test The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection(). Am I missing some parameter or doing somethign wrong? using PDOMySql driver for the test environmenet works fine. Alfonso -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en