public function AbstractClassMetadataFactory::isTransient

Check if this class is mapped by this Object Manager + ClassMetadata configuration

Parameters

$class:

Return value

bool

Overrides ClassMetadataFactory::isTransient

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php, line 346

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);
    $class = $this
      ->getFqcnFromAlias($namespaceAlias, $simpleClassName);
  }
  return $this
    ->getDriver()
    ->isTransient($class);
}