From b6f9cd0c074b22e567b43ea7f0bddfe9b106d598 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Mon, 12 Apr 2010 21:54:43 -0300 Subject: [PATCH] [2.0][DDC-503] Added missing IdGeneratorType. --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 9dcc27d4b..c8957041a 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -933,6 +933,9 @@ public function () case ClassMetadataInfo::GENERATOR_TYPE_IDENTITY: return 'IDENTITY'; + case ClassMetadataInfo::GENERATOR_TYPE_NONE: + return 'NONE'; + default: throw new \InvalidArgumentException('Invalid provided IdGeneratorType: ' . $type); }