public function MappingDriverChain::isTransient in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain::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/ MappingDriverChain.php, line 150
Class
- MappingDriverChain
- The DriverChain allows you to add multiple other mapping drivers for certain namespaces.
Namespace
Doctrine\Common\Persistence\Mapping\DriverCode
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;
}