change external schema path on generating new module. Fix #197

This commit is contained in:
Manuel Raynaud
2014-01-29 15:38:06 +01:00
parent 6e33670e04
commit 58255430df
2 changed files with 1 additions and 2 deletions

View File

@@ -106,7 +106,6 @@ class ModuleGenerateCommand extends BaseModuleGenerate
$schemaContent = file_get_contents($skeletonDir . "schema.xml"); $schemaContent = file_get_contents($skeletonDir . "schema.xml");
$schemaContent = str_replace("%%CONFIG_DIR%%", THELIA_CONF_DIR, $schemaContent);
$schemaContent = str_replace("%%NAMESPACE%%", $this->module, $schemaContent); $schemaContent = str_replace("%%NAMESPACE%%", $this->module, $schemaContent);
file_put_contents($this->moduleDirectory . DIRECTORY_SEPARATOR . "Config". DIRECTORY_SEPARATOR . "schema.xml", $schemaContent); file_put_contents($this->moduleDirectory . DIRECTORY_SEPARATOR . "Config". DIRECTORY_SEPARATOR . "schema.xml", $schemaContent);

View File

@@ -3,5 +3,5 @@
<!-- <!--
See propel documentation on http://propelorm.org for all information about schema file See propel documentation on http://propelorm.org for all information about schema file
--> -->
<external-schema filename="%%CONFIG_DIR%%schema.xml" referenceOnly="true" /> <external-schema filename="local/config/schema.xml" referenceOnly="true" />
</database> </database>