I have the same problem, my Doctrine Configuration for sqlite is as
follows (in config/config.php):
$rootDir = dirname(dirname(__DIR__));
$container->loadFromExtension('doctrine', 'dbal', array(
'driver' => 'PDOSqlite',
'path' => $rootDir . '\db.sqlite',
'user' => '',
'password' => '',
));
and when I exec 'php console doctrine:schema:create', results in the
following error:
Could not create database for connection named D:\dev-
php2\sonnet1\db.sqlite
Notice: Undefined index: driver in D:\dev-php2\sonnet1\src\vendor
\doctrine-dbal\
lib\Doctrine\DBAL\Schema\SqliteSchemaManager.php line 54
I use Doctrine version 24c6bb3... (2010-09-04 18:18:02).
I create the db.sqlite file by myself, and exec 'php console
doctrine:schema:create', results:
Creating database schema...
Database schema created successfully!
But in db.sqlite, no table created.
Everything is ok if you use MySql.
On 8月13日, 下午1时54分, Alfonso Alba García <[email protected]> wrote:
> 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 ansqlite
> >> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en