You are here

public function AbstractClassMetadataFactory::isTransient in Plug 7

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 lib/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

lib/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);
}