protected function getParentClasses($className)
 {
     // Collect parent classes, ignoring transient (not-mapped) classes.
     $parentClasses = array();
     foreach (array_reverse(class_parents($className)) as $parentClass) {
         if (!$this->driver->isTransient($parentClass)) {
             $parentClasses[] = $parentClass;
         }
     }
     return $parentClasses;
 }
 /**
  * Whether the class with the specified name should have its metadata loaded.
  * This is only the case if it is either mapped as an Entity or a
  * MappedSuperclass.
  *
  * @param string $className
  * @return boolean
  */
 public function isTransient($className)
 {
     return $this->driver->isTransient($className);
 }