marcosQuesada / Symfony2--Sonata-Full---FOSUserBundle

Sonada Admin
MIT License
3 stars 0 forks source link

Invalid db driver "orm" #1

Open panosru opened 12 years ago

panosru commented 12 years ago

Hello, I followed the installation process but when I'm about to run app/console doctrine:database:create I'm getting the following error in terminal:

debian:/var/www/symfony# app/console doctrine:database:create

[InvalidArgumentException]  
Invalid db driver "orm". 

In app/config/parameters.ini I have this:

; These parameters can be imported into other config files
; by enclosing the key with % (like %database_user%)
; Comments start with ';', as in php.ini
[parameters]
    database_driver   = "pdo_mysql"
    database_host     = "localhost"
    database_name     = "symfony"
    database_user     = "root"
    database_password = "root"
    database_port     = ""

    mailer_transport  = smtp
    mailer_host       = localhost
    mailer_user       =
    mailer_password   =

    locale            = en

    secret            = ThisTokenIsNotSoSecretChangeIt

Any help would be appreciated :)

Thanks!

dgrigoryan commented 12 years ago

I have the same problem!

lutangar commented 12 years ago

Seems to be something like doctrine_orm instead of orm sonata_media: db_driver: doctrine_orm

marcosQuesada commented 12 years ago

Hi all!! Let me apologize for the delay... I've found Invalid db driver "orm" failure, related to Sonata Media Bundle Update: in app/config/sonata_media.yml:
change db_driver: orm db_driver: doctrine_orm pre Anyway , that is not the main problem of this repo. Seems that Sonata Admin Bundle has deeply changes, splitted now in SonataOrmAdminBundle & SonataAdminBundle. Including on deps, kernel ...was not solving this Issue, so I've decide to checkout again from Sonata Sandbox repo, working as a charm! So I recomend to all of you to leave this repo and checkout from these one: https://github.com/marcosQuesada/Symfony2--Test---Sonata

That one is Sonata Sandbox with my own bundle integrated on backend , is Base /TestBundle, has actually 3 entities in Backend .

Hope this will be helpful ;)

marcosQuesada commented 12 years ago

Just for your info, Sonata Admin Bundl trouble appears updating bin/vendors. So it's posible that changing orm to doctrine_orm will be enought to get it work.
Without any kind of doubt , start from new Sonata version is a must!