From 68d12596ce9ca1d4ef93e8fce1d333e4141b77ce Mon Sep 17 00:00:00 2001 From: adrive Date: Tue, 13 Nov 2007 16:33:17 +0000 Subject: [PATCH] Quoted inheritance type value to be able to use string values as keyValues --- lib/Doctrine/Import/Builder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Import/Builder.php b/lib/Doctrine/Import/Builder.php index 1392ff41b..62a8114ba 100644 --- a/lib/Doctrine/Import/Builder.php +++ b/lib/Doctrine/Import/Builder.php @@ -592,7 +592,7 @@ END; if (isset($options['inheritance']['keyField']) && isset($options['inheritance']['keyValue'])) { $i++; - $ret[$i] = " ".'$this->setInheritanceMap(array(\''.$options['inheritance']['keyField'].'\' => '.$options['inheritance']['keyValue'].'));'; + $ret[$i] = " ".'$this->setInheritanceMap(array(\''.$options['inheritance']['keyField'].'\' => \''.$options['inheritance']['keyValue'].'\'));'; } $code = implode("\n", $ret); @@ -839,4 +839,4 @@ END; throw new Doctrine_Import_Builder_Exception("Couldn't write file " . $writePath); } } -} \ No newline at end of file +}