Skip to content

Commit

Permalink
Merge pull request #438 from doctrine/fix-odm-deprecations
Browse files Browse the repository at this point in the history
Fix deprecations coming from ODM
  • Loading branch information
malarzm authored Nov 14, 2017
2 parents 658c1d0 + bb3fba8 commit c5187b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tests/Fixtures/Validator/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Document
/** @ODM\Field(type="hash") */
public $hash;

/** @ODM\Collection */
/** @ODM\Field(type="collection") */
public $collection;

/** @ODM\ReferenceOne(targetDocument="Doctrine\Bundle\MongoDBBundle\Tests\Fixtures\Validator\Document") */
Expand Down
4 changes: 2 additions & 2 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

require_once $file;

use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
use Doctrine\Common\Annotations\AnnotationRegistry;

AnnotationDriver::registerAnnotationClasses();
AnnotationRegistry::registerLoader('class_exists');

0 comments on commit c5187b7

Please sign in to comment.