sure

$./app/console doctrine:mongodb:mapping:info  --verbose





[InvalidArgumentException]

  The parameter "doctrine.odm.mongodb.default_document_manager" must be
defined.




Exception trace:
 () at
/home/daniel/www/Trainer/app/cache/dev/appDevDebugProjectContainer.php:2300
 appDevDebugProjectContainer->getParameter() at
/home/daniel/www/Trainer/vendor/bundles/Symfony/Bundle/DoctrineMongoDBBundle/Command/InfoDoctrineODMCommand.php:50
 Symfony\Bundle\DoctrineMongoDBBundle\Command\InfoDoctrineODMCommand->execute()
at
/home/daniel/www/Trainer/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:187
 Symfony\Component\Console\Command\Command->run() at
/home/daniel/www/Trainer/vendor/symfony/src/Symfony/Component/Console/Application.php:194
 Symfony\Component\Console\Application->doRun() at
/home/daniel/www/Trainer/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at
/home/daniel/www/Trainer/vendor/symfony/src/Symfony/Component/Console/Application.php:118
 Symfony\Component\Console\Application->run() at
/home/daniel/www/Trainer/app/console:16


doctrine:mongodb:mapping:info [--dm[="..."]]



On 19 June 2011 15:26, Kris Wallsmith <kris.wallsm...@gmail.com> wrote:

> It sounds like something is asking for a parameter when it should be asking
> for a service. Can you provide a trace for the exception (add --verbose to
> the command)?
>
> k
>
> On Jun 19, 2011, at 1:08 AM, Dan Leech <dan.t.le...@gmail.com> wrote:
>
> hi
>
> In a new project with BETA5, following the "How to use MongoDB" article
> (btw the vendor dependencies section is out of date)
>
> I created some entities and ran doctrine:mongodb:mapping:info and got the
> following error:
>
>
> [InvalidArgumentException]
>
>   The parameter "doctrine.odm.mongodb.default_document_manager" must be
> defined.
>
> To fix I added the following to
> "DoctrineMongoDBBundle\DependencyInjection\DoctinreMongoDBExtension::loadDocumentManagers"
>
>   $container->setParameter('doctrine.odm.mongodb.default_document_manager',
> $defaultDM);
>
> Bug?
>
> cheers
>
> dan
>
> --
> Dan Leech
>
> Web Developer
> <http://www.dantleech.com>www.dantleech.com
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at <http://symfony-project.com>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 <symfony-devs@googlegroups.com>
> symfony-devs@googlegroups.com
> To unsubscribe from this group, send email to
>  <symfony-devs+unsubscr...@googlegroups.com>
> symfony-devs+unsubscr...@googlegroups.com
> For more options, visit this group at
>  <http://groups.google.com/group/symfony-devs?hl=en>
> 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 symfony-devs@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-devs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>



-- 
Dan Leech

Web Developer
www.dantleech.com

-- 
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 symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to