Skip to content

Commit 5417a77

Browse files
committed
Merge pull request doctrine#172 from analogic/patch-2
Edited lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php via GitH
2 parents 43e2156 + a6834b2 commit 5417a77

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,4 +407,17 @@ private function addInheritedIndexes(ClassMetadata $subClass, ClassMetadata $par
407407
$subClass->addIndex($index['keys'], $index['options']);
408408
}
409409
}
410+
411+
/**
412+
* Whether the class with the specified name should have its metadata loaded.
413+
* This is only the case if it is either mapped as an Document or a
414+
* MappedSuperclass.
415+
*
416+
* @param string $className
417+
* @return boolean
418+
*/
419+
public function isTransient($className)
420+
{
421+
return $this->driver->isTransient($className);
422+
}
410423
}

0 commit comments

Comments
 (0)