Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

see doctrine/mongodb-odm#80

  • Loading branch information...
commit e8e7d7dd08b9da192f5e88b34b7589aa79addef2 1 parent 8aaae6c
@lsmith77 lsmith77 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/ODM/PHPCR/Mapping/Driver/DriverChain.php
View
4 lib/Doctrine/ODM/PHPCR/Mapping/Driver/DriverChain.php
@@ -68,10 +68,10 @@ public function loadMetadataForClass($className, ClassMetadata $class)
public function getAllClassNames()
{
$classNames = array();
- foreach ($this->drivers as $driver) {
+ foreach ($this->drivers AS $driver) {
$classNames = array_merge($classNames, $driver->getAllClassNames());
}
- return $classNames;
+ return array_values(array_unique($classNames));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.