Example #1
0
 /**
  * Returns 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 bool
  */
 public function isTransient($className)
 {
     return !$this->mappers->hasMapperFor($className) || $this->mappers->getMapperFor($className)->isTransient();
 }