From 843711bc32b04caad4228c8f6e74576839b86ef2 Mon Sep 17 00:00:00 2001 From: amadeus Date: Tue, 22 Aug 2006 20:23:29 +0000 Subject: [PATCH] Fixed missing quotes on Doctrine::classify() --- Doctrine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doctrine.php b/Doctrine.php index d9bda9dcf..ec5254a72 100644 --- a/Doctrine.php +++ b/Doctrine.php @@ -436,7 +436,7 @@ class DQLException extends Exception { } * @return string */ public static function classify($tablename) { - return preg_replace('~(_?)(_)([\w])~e', '"$1".strtoupper($3)', ucfirst($tablename)); + return preg_replace('~(_?)(_)([\w])~e', '"$1".strtoupper("$3")', ucfirst($tablename)); } } ?>