Whether the class with the specified name is transient. Only non-transient classes, that is entities and mapped superclasses, should have their metadata loaded.
A class is non-transient if it is annotated with an annotation from the {
string $className:
boolean
Overrides MappingDriver::isTransient
AnnotationDriver::entityAnnotationClasses}.
public function isTransient($className) {
$classAnnotations = $this->reader
->getClassAnnotations(new \ReflectionClass($className));
foreach ($classAnnotations as $annot) {
if (isset($this->entityAnnotationClasses[get_class($annot)])) {
return false;
}
}
return true;
}