0

let say, my database name = television everytime I try to craate database in CLEAN symfony project (I try version 2.3 or 2.5) for developer mode, it still create database "television" .. when I try to create database for production mode, it's trying to make database with same name "television"

in developer mode it should create database "television_dev", not "television"

I had one cloned project (sylius), and in this project creating databases works fine ... I try to make sure, I have all bundles same (I mean doctrine versions), but it still not working

what am I doing wrong ? what should I config ?

1
  • Sylius is not Symfony, even if is based on SF project. Of course if you have configured SF with db_name = television, it will always create a db named "television". If you want to change it, simply change configuration file Commented Sep 17, 2014 at 6:54

1 Answer 1

1

in app/config/config_dev.yml add:

doctrine:
    dbal:
        dbname:   %database_name%_dev

then you case use this command to create the db

php app/console doctrine:database:create

based on your environment either you will have television or television_dev

Sign up to request clarification or add additional context in comments.

1 Comment

thanks .. this solved the probllem ... I overlooked it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.