2011/1/10 Yan <[email protected]>:
> This is my configuration. It can create database, drop database and
> create schema.

so is your problem solved?

>
> ## Doctrine Configuration
> doctrine.dbal:
>    drivr:    ODOMySql
>    dbname:   Symfony2
>    user:     root
>    password: null
> doctrine.orm:
>    auto_generate_proxy_classes: %kernel.debug%
>    mappings:
>        HelloBundle: ~
>
>
> On Jan 10, 4:13 pm, "[email protected]" <[email protected]>
> wrote:
>> Hi,
>>
>> I've set-up symfony2 manually by downloading symfony-bootstrapper from
>> github and initializing the application, then by downloading symfony2
>> and installing the vendor directories as suggested. After changing a
>> single uppercase letter to a lowercase one in the application kernel
>> the myapp_dev.php now results in a Congratulations page and a
>> check.php file I copied over from the sandbox passes every check.
>>
>> I then moved onto configuring doctrine2 as suggested in the docs
>> (configured as below). The doctrine2 task doctrine:database:create
>> results in "Could not find any configured database connections". I
>> have tried to supply an additional parameter "driver: PDOMySql" and
>> explicitly name the connection with no success. I have also created a
>> JobEntity but I believe the application doesn't get as far as parsing
>> that.
>>
>> I ventured into the doctrine2 command line task to see where the
>> exception is thrown, and the task looks for something named
>> doctrine.dbal.[connectionname]_connection, which does not exist on the
>> list of items it receives from symfony2 - as if the configure file was
>> not read at all but echo statements show that it is indeed being read.
>> There's an item on the list called "database_connection" and I tried
>> to manually feed that to the connection parser but it resulted in a
>> set of other errors. There are also some other items which start with
>> "doctrine.dbal", but none of them end in "_connection".
>>
>> I've tried both php and yml formats for configuration. What's the
>> magic behind this and how to get a default database connection to work
>> in symfony2?
>>
>> app/config/config.yml:
>>
>> doctrine.dbal:
>>   dbname:        th2
>>   user:             root
>>   password:     mypasswordgoeshere
>>   host:             localhost
>> doctrine.orm: ~
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Nadalin Alessandro
www.odino.org
www.twitter.com/_odino_

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to