1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Adjust ClassMetadataFactory to forthcoming interface change

This commit is contained in:
Benjamin Eberlei 2011-09-25 14:41:56 +02:00
parent 9795cb1f0d
commit c02920762b

View File

@ -50,7 +50,7 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface
private $targetPlatform;
/**
* @var Driver\Driver
* @var \Doctrine\ORM\Mapping\Driver\Driver
*/
private $driver;
@ -481,4 +481,15 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface
throw new ORMException("Unknown generator type: " . $class->generatorType);
}
}
/**
* Check if this class is mapped by this EntityManager + ClassMetadata configuration
*
* @param $class
* @return bool
*/
public function isTransient($class)
{
return $this->driver->isTransient($class);
}
}