Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6158263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:55:40+00:00 2026-05-23T20:55:40+00:00

I am using Symfony 2.0 beta3 and I am facing a rather strange problem.

  • 0

I am using Symfony 2.0 beta3 and I am facing a rather strange problem. I have
set up the ORM with a sqlite database following the instructions of
the website but when I type:

php app/console doctrine:database:create

then

php app/console doctrine:schema:create

and finally

php app/console doctrine:schema:update --force

I don’t get any error (for example last command outputs “Database
schema updated successfully”) but nothing is actually inserted into
the database. The table aren’t even created. The database file is
generated after the first command but remains empty.

Since I have configured FOS_UserBundle I should have for example a
table fos_user…
When I type

 php app/console doctrine:schema:update --dump-sql

It shows that three SQL requests are pending… If I execute these three requests using
SQLiteManager, it works (so the fos_user table is created)
but when I want to create a user using:

php app/console fos:user:create

I get a “SQLSTATE[HY000]: General error: 1 no such table: fos_user ” error.

Why am I not given some error message when I run the first three
commands? Am I missing something?

I face the same behaviour using pdo_pgsql driver, except that the SQL
generated by the dump is not ANSI compliant so it can’t be executed
for postgresql (use of datetime and autoincrement instead of timestamp
and serial)….

Any help would be much appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:55:41+00:00Added an answer on May 23, 2026 at 8:55 pm

    I found this solution on the Symfony forums.

    It would seem the helpers aren’t creating two things that you need for the sqlite implementation to work correctly.

    Firstly, in the parameters.ini for the project (tweak to suit):

     database_path=%kernel.root_dir%/config/MyDatabase.db
    

    Secondly, in the config.yml file in the doctrine.dbal section, add the following:

     path: %database_path%
    

    Then run:

    php app/console doctrine:database:create
    

    and it should generate the database for you in the app/config folder.

    You will need to run:

    php app/console doctrine:schema:create
    

    to create the schema. Re-run the code that didn’t work and it should work fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Symfony 1.2.9 (with Propel ORM), to build a website. I have
I am using Symfony 1.3 and I have the following problem: I need a
I am using Symfony 1.2.9 (with Propel ORM) on a website I am building.
I'm currently designing a website, using symfony (1.2) with Doctrine as an ORM. I
I am using Symfony 1.4 and Propel as ORM. I have created a form
I'm using symfony to develop a website and have it mostly functioning, but I
I am using Symfony (1.31) - with Propel ORM to build a website. I
I am using Symfony 2.0.10 with Doctrine 2.1 and have rather simple query (see
we using symfony 1.0. We have an module work with Propel objects. The sql-querys
I'm using Symfony 1.4 and Doctrine. So far I had no problem running tasks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.