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 [email protected] > (mailto:[email protected]) > To unsubscribe from this group, send email to > [email protected] > (mailto:[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
