Commit 68d12596 authored by adrive's avatar adrive

Quoted inheritance type value to be able to use string values as keyValues

parent 187c194b
...@@ -592,7 +592,7 @@ END; ...@@ -592,7 +592,7 @@ END;
if (isset($options['inheritance']['keyField']) && isset($options['inheritance']['keyValue'])) { if (isset($options['inheritance']['keyField']) && isset($options['inheritance']['keyValue'])) {
$i++; $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); $code = implode("\n", $ret);
...@@ -839,4 +839,4 @@ END; ...@@ -839,4 +839,4 @@ END;
throw new Doctrine_Import_Builder_Exception("Couldn't write file " . $writePath); throw new Doctrine_Import_Builder_Exception("Couldn't write file " . $writePath);
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment