You are here

public function AbstractClassMetadataFactory::isTransient in Zircon Profile 8.0

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

Returns whether the class with the specified name should have its metadata loaded. This is only the case if it is either mapped directly or as a MappedSuperclass.

Parameters

string $className:

Return value

boolean

Overrides ClassMetadataFactory::isTransient

1 method overrides AbstractClassMetadataFactory::isTransient()
TestClassMetadataFactory::isTransient in vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php
Returns whether the class with the specified name should have its metadata loaded. This is only the case if it is either mapped directly or as a MappedSuperclass.

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php, line 390

Class

AbstractClassMetadataFactory
The ClassMetadataFactory is used to create ClassMetadata objects that contain all the metadata mapping informations of a class which describes how a class should be mapped to a relational database.

Namespace

Doctrine\Common\Persistence\Mapping

Code

public function isTransient($class) {
  if (!$this->initialized) {
    $this
      ->initialize();
  }

  // Check for namespace alias
  if (strpos($class, ':') !== false) {
    list($namespaceAlias, $simpleClassName) = explode(':', $class, 2);
    $class = $this
      ->getFqcnFromAlias($namespaceAlias, $simpleClassName);
  }
  return $this
    ->getDriver()
    ->isTransient($class);
}