/**
  * Check if this class is mapped by this EntityManager + ClassMetadata configuration
  *
  * @param $class
  * @return bool
  */
 public function isTransient($class)
 {
     if (!$this->initialized) {
         $this->initialize();
     }
     return $this->driver->isTransient($class);
 }
 /**
  * Get array of parent classes for the given entity class
  *
  * @param string $name
  * @return array $parentClasses
  */
 protected function getParentClasses($name)
 {
     // Collect parent classes, ignoring transient (not-mapped) classes.
     $parentClasses = array();
     foreach (array_reverse(class_parents($name)) as $parentClass) {
         if (!$this->driver->isTransient($parentClass)) {
             $parentClasses[] = $parentClass;
         }
     }
     return $parentClasses;
 }
 /**
  * Check if this class is mapped by this EntityManager + ClassMetadata configuration
  *
  * @param $class
  * @return bool
  */
 public function isTransient($class)
 {
     if (!$this->initialized) {
         $this->initialize();
     }
     // Check for namespace alias
     if (strpos($class, ':') !== false) {
         list($namespaceAlias, $simpleClassName) = explode(':', $class);
         $class = $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName;
     }
     return $this->driver->isTransient($class);
 }
 /**
  * Whether the class with the specified name should have its metadata loaded.
  *
  * This is only the case for non-transient classes either mapped as an Entity or MappedSuperclass.
  *
  * @param string $className
  * @return boolean
  */
 public function isTransient($className)
 {
     foreach ($this->drivers as $namespace => $driver) {
         if (strpos($className, $namespace) === 0) {
             return $driver->isTransient($className);
         }
     }
     if ($this->defaultDriver !== null) {
         return $this->defaultDriver->isTransient($className);
     }
     // class isTransient, i.e. not an entity or mapped superclass
     return true;
 }
 /**
  * {@inheritDoc}
  */
 public function isTransient($className)
 {
     $this->initialize();
     return $this->driver->isTransient($className);
 }