Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update Resources/doc/index.rst #159

Merged
merged 1 commit into from

2 participants

@meonkeys

Use improved way of registering annotations library suggested by
@jmikola in #158.

@meonkeys meonkeys Update Resources/doc/index.rst
Use improved way of registering annotations library suggested by
@jmikola in doctrine#158.
8a265c8
@jmikola
Owner

Thanks!

@jmikola jmikola merged commit 5515d53 into doctrine:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 21, 2012
  1. @meonkeys

    Update Resources/doc/index.rst

    meonkeys authored
    Use improved way of registering annotations library suggested by
    @jmikola in doctrine#158.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 3 deletions.
  1. +2 −3 Resources/doc/index.rst
View
5 Resources/doc/index.rst
@@ -67,9 +67,8 @@ Next, register the annotations library by adding the following to the autoloader
(below the existing ``AnnotationRegistry::registerLoader`` line)::
// app/autoload.php
- AnnotationRegistry::registerFile(
- __DIR__.'/../vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php'
- );
+ use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
+ AnnotationDriver::registerAnnotationClasses();
All that is left to do is to update your ``AppKernel.php`` file, and
register the new bundle::
Something went wrong with that request. Please try again.