Unfortunatelly, that doesn't seem to work with latest symfony rc4 and
rc5-dev. Sg obviously changed in the autoloading mechanism.

I opened an issue for it and provided a workaround (eager loading, as
above):

https://github.com/doctrine/mongodb-odm/issues/129

On Jul 15, 8:25 pm, Kris Wallsmith <kris.wallsm...@gmail.com> wrote:
> You need to add the following line to autoload.php:
>
> Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver::registerAnnotationClasses();
>
>
>
>
>
>
>
> On Friday, July 15, 2011 at 11:15 AM, Dan Leech wrote:
> > Hi All
>
> > It seems that the annotations for MongoDB do not autoload since the 
> > filename changed from "Annotations.php" to "DoctrineAnnotations.php" so
>
> > use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
>
> > doesnt work without first including the annotations class -- I did this in 
> > autoload.php:
>
> > require_once 
> > __DIR__.'/../vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php';
>
> > So .. am I missing something? or is this now the right thing to do?
>
> > thanks
>
> > dan
>
> > --
> > Dan Leech
>
> > Web Developer
> >www.dantleech.com(http://www.dantleech.com)
> >  --
> >  If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.com (http://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 
> > (mailto:symfony-devs@googlegroups.com)
> >  To unsubscribe from this group, send email to
> > symfony-devs+unsubscr...@googlegroups.com 
> > (mailto:symfony-devs+unsubscr...@googlegroups.com)
> >  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 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