我正在使用zf2和doctrine orm模块以及sqlite3数据库。当我从数据库中获取数据时,会出现如下错误:
执行'SELECT t0.id AS id1,t0.email AS email2,t0.password AS password3,t0.fname AS fname4,t0.lname AS lname5,t0.mobile AS mobile6 FROM user t0'时发生异常:
SQLSTATE [HY000]:一般错误:1没有这样的表:user
我的global.php文件在这里:
<?php
return array(
'doctrine' => array(
'connection' => array(
'orm_default' => array(
'driverClass' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver',
'params' => array( 'dsn' => __DIR__ . '/data/intranet.db',
)
)
)
),
);
你可以回答我的对错吗?
thankssss ,,,,,,
答案 0 :(得分:4)
'doctrine' => array(
'connection' => array(
'orm_default' => array(
'driverClass' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver',
'params' => array(
'path'=> __DIR__.'/../../data/database name',
)
)
)
),
);