You are here

public function FileDriver::isTransient in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php \Doctrine\Common\Persistence\Mapping\Driver\FileDriver::isTransient()

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.

Parameters

string $className:

Return value

boolean

Overrides MappingDriver::isTransient

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php, line 126

Class

FileDriver
Base driver for file-based metadata drivers.

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function isTransient($className) {
  if ($this->classCache === null) {
    $this
      ->initialize();
  }
  if (isset($this->classCache[$className])) {
    return false;
  }
  return !$this->locator
    ->fileExists($className);
}