thanks for your comments !

understand, but when I run

php app/console doctrine:mongodb:schema:create

or

php app/console doctrine:mongodb:generate:documents

show

PHP Fatal error:  Interface 'Doctrine\Common\Persistence\ObjectManager' not
found in
/var/www/sf2-pr6-03/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php
on line 49



2011/2/27 Bulat Shakirzyanov <[email protected]>

> You don't need to create a database for mongodb, that command is for dbal.
> If you want to create database for mongodb run
> doctrine:mongodb:schema:create
>
> Sent from my Nexus One
> On Feb 26, 2011 7:07 PM, "César Hernández" <[email protected]> wrote:
> > Greetings
> >
> > when working with ORM one of the first things I do
> > after upgrading my app / config / config.yml is to run the command
> >
> > php app/console doctrine:database:create
> >
> > -----------
> >
> > I want to do some tests with MongoDB
> > for this:
> >
> > MongoDB installed
> > Mongo download the driver for PHP and update the php.ini file
> > and restart my apache server
> > and test the system: phpmoadmin
> > So far so good ....!
> >
> >
> > ODM start tests with PR6 Symfony2
> > see the documentation
> > http://docs.symfony-reloaded.org/guides/doctrine/mongodb-odm/index.html
> >
> > in my app/config/config.php make the following change
> >
> > ## Doctrine Configuration
> > doctrine:
> > # dbal:
> > # dbname: xxxxxxxx
> > # user: xxxxxxxx
> > # password: ~
> > # logging: %kernel.debug%
> > # orm:
> > # auto_generate_proxy_classes: %kernel.debug%
> > # mappings:
> > # HelloBundle: ~
> >
> > doctrine_odm.mongodb:
> > server: mongodb://localhost:27017
> > default_database: MisCuentas_%kernel.environment%
> > options:
> > connect: true
> > metadata_cache_driver: array # array, apc, xcache, memcache
> > mappings:
> > CuentasBundle: ~
> >
> >
> > that ... I thought it would be enough to create the database
> > but when I run
> >
> > php app/console doctrine:database:create
> >
> > but it throws the following error
> >
> > [InvalidArgumentException]
> > The parameter "doctrine.dbal.default_connection" must be defined.
> >
> > es algún bug???
> > alguna orientación al respecto ?
> >
> > thanks !!!
> >
> > --
> > César Hernández
> > Anzoátegui - Venezuela
> > [email protected]
> >
> > LinuxCounter: 285.345
> > CIV: 122.539
> >
> >
> >
> >
> >
> >
> > --
> > César Hernández
> > Anzoátegui - Venezuela
> > [email protected]
> >
> > LinuxCounter: 285.345
> > CIV: 122.539
> >
> > --
> > 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 developers" 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-devs?hl=en
>
> --
> 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 developers" 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-devs?hl=en
>



-- 
César Hernández
Anzoátegui - Venezuela
[email protected]

LinuxCounter: 285.345
CIV: 122.539

-- 
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 developers" 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-devs?hl=en

Reply via email to