change external schema path on generating new module. Fix #197
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user