how to connect sqlite database with zf2 using doctrine orm

i am using zf2 with doctrine orm module and sqlite3 database. when i m fetch data from database there is error like:

An exception occurred while executing ‘SELECT AS id1, AS email2, t0.password AS password3, t0.fname AS fname4, t0.lname AS lname5, AS mobile6 FROM user t0′:

SQLSTATE[HY000]: General error: 1 no such table: user

and my global.php file is here:


return array(
'doctrine' => array(
    'connection' => array(
        'orm_default' => array(
                'driverClass' => 'Doctrine\DBAL\Driver\PDOSqlite\Driver',
                'params' => array(                                      'dsn'  =>  __DIR__ . '/data/intranet.db',     


can u please answer me its right or wrong?

Leave a Reply


Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.