/** * {@inheritDoc} */ public function isTransient($className) { if (strpos($className, self::NAME_SPACE) === 0) { return $this->builtinDriver->isTransient($className); } return $this->wrappedDriver->isTransient($className); }
/** * {@inheritDoc} */ 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; }
/** * 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. * * @param string $className * * @return boolean */ public function isTransient($className) { /** * @var $driver FileDriver */ foreach ($this->drivers as $driver) { $namespace = $driver->getGlobalBasename(); if ($this->classNameIsAllowed($className, $namespace)) { return $driver->isTransient($className); } } if ($this->defaultDriver !== null) { return $this->defaultDriver->isTransient($className); } return true; }
/** * 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. * * @param string $className * @return boolean */ public function isTransient($className) { return $this->innerDriver->isTransient($className); }
/** * @inheritdoc */ public function isTransient($className) { return $this->wrapped->isTransient($className); }