Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix automatic code suggestions on DoctrineDriver
  • Loading branch information
rosstuck committed Nov 11, 2012
1 parent 60feec6 commit 0039407
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions Metadata/Driver/DoctrineTypeDriver.php
Expand Up @@ -19,7 +19,6 @@
namespace JMS\SerializerBundle\Metadata\Driver;

use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Common\Persistence\ObjectManager;
use Metadata\Driver\DriverInterface;

/**
Expand Down Expand Up @@ -76,7 +75,7 @@ public function loadMetadataForClass(\ReflectionClass $class)
$classMetadata = $this->delegate->loadMetadataForClass($class);

// Abort if the given class is not a mapped entity
if (!$doctrineMetadata = $this->tryLoadingDoctrineMetadata($class->getName())) {
if (!$doctrineMetadata = $this->tryLoadingDoctrineMetadata($class->name)) {
return $classMetadata;
}

Expand Down
1 change: 0 additions & 1 deletion Tests/Metadata/Driver/DoctrineDriverTest.php
Expand Up @@ -20,7 +20,6 @@

use JMS\SerializerBundle\Metadata\Driver\AnnotationDriver;
use JMS\SerializerBundle\Metadata\Driver\DoctrineTypeDriver;

use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\EntityManager;
Expand Down

0 comments on commit 0039407

Please sign in to comment.