1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Cleanup.

This commit is contained in:
romanb 2009-06-07 17:21:57 +00:00
parent 6e5a5068a6
commit 84c62d8aec

View File

@ -130,13 +130,6 @@ class AnnotationDriver implements Driver
$mapping['id'] = true; $mapping['id'] = true;
} }
if ($generatedValueAnnot = $property->getAnnotation('GeneratedValue')) { if ($generatedValueAnnot = $property->getAnnotation('GeneratedValue')) {
if ($generatedValueAnnot->strategy == 'auto') {
try {
throw new \Exception();
} catch (\Exception $e) {
var_dump($e->getTraceAsString());
}
}
$metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' . $generatedValueAnnot->strategy)); $metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' . $generatedValueAnnot->strategy));
} }
$metadata->mapField($mapping); $metadata->mapField($mapping);