public function MappingDriverChain::isTransient

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.

Parameters

string $className:

Return value

boolean

Overrides MappingDriver::isTransient

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php, line 153

Class

MappingDriverChain
The DriverChain allows you to add multiple other mapping drivers for certain namespaces

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function isTransient($className) {

  /* @var $driver MappingDriver */
  foreach ($this->drivers as $namespace => $driver) {
    if (strpos($className, $namespace) === 0) {
      return $driver
        ->isTransient($className);
    }
  }
  if ($this->defaultDriver !== null) {
    return $this->defaultDriver
      ->isTransient($className);
  }
  return true;
}