src/Eccube/Command/PluginCommand/EntityFromDbGenerator.php 1 location
|
@@ 63-73 (lines=11) @@
|
| 60 |
|
$codePath = $this->app['config']['root_dir'] . '/app/Plugin/' . $pluginCode; |
| 61 |
|
|
| 62 |
|
$dirList = array('Entity', 'Repository', 'Resource', 'Resource/doctrine', '/Resource/doctrine/migration'); |
| 63 |
|
foreach ($dirList as $dirName) { |
| 64 |
|
$dirPath = $codePath . '/' . $dirName; |
| 65 |
|
if (!is_dir($dirPath)) { |
| 66 |
|
mkdir($dirPath); |
| 67 |
|
} |
| 68 |
|
if (is_dir($dirPath)) { |
| 69 |
|
$fsList['dir'][$dirPath] = true; |
| 70 |
|
} else { |
| 71 |
|
$fsList['dir'][$dirPath] = false; |
| 72 |
|
} |
| 73 |
|
} |
| 74 |
|
$entityInfoList = array(); |
| 75 |
|
$SchemaManager = $this->app['orm.em']->getConnection()->getSchemaManager(); |
| 76 |
|
$migration = array(); |
src/Eccube/Command/PluginCommand/EntityFromYamlGenerator.php 1 location
|
@@ 68-78 (lines=11) @@
|
| 65 |
|
$codePath = $this->app['config']['root_dir'] . '/app/Plugin/' . $pluginCode; |
| 66 |
|
|
| 67 |
|
$dirList = array('Entity', 'Repository', '/Resource/doctrine/migration'); |
| 68 |
|
foreach ($dirList as $dirName) { |
| 69 |
|
$dirPath = $codePath . '/' . $dirName; |
| 70 |
|
if (!is_dir($dirPath)) { |
| 71 |
|
mkdir($dirPath); |
| 72 |
|
} |
| 73 |
|
if (is_dir($dirPath)) { |
| 74 |
|
$fsList['dir'][$dirPath] = true; |
| 75 |
|
} else { |
| 76 |
|
$fsList['dir'][$dirPath] = false; |
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
$metadetas = array(); |
| 80 |
|
|
| 81 |
|
|
src/Eccube/Command/GeneratorCommand/EntityFromDbGenerator.php 1 location
|
@@ 134-144 (lines=11) @@
|
| 131 |
|
$codePath = $this->app['config']['root_dir'].'/app/Plugin/'.$pluginCode; |
| 132 |
|
|
| 133 |
|
$dirList = array('Entity', 'Repository', 'Resource', 'Resource/doctrine', 'Resource/doctrine/migration'); |
| 134 |
|
foreach ($dirList as $dirName) { |
| 135 |
|
$dirPath = $codePath.'/'.$dirName; |
| 136 |
|
if (!is_dir($dirPath)) { |
| 137 |
|
mkdir($dirPath); |
| 138 |
|
} |
| 139 |
|
if (is_dir($dirPath)) { |
| 140 |
|
$fsList['dir'][$dirPath] = true; |
| 141 |
|
} else { |
| 142 |
|
$fsList['dir'][$dirPath] = false; |
| 143 |
|
} |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
$doctrinePath = $codePath.'/Resource/doctrine'; |
| 147 |
|
|
src/Eccube/Command/GeneratorCommand/EntityFromYamlGenerator.php 1 location
|
@@ 136-146 (lines=11) @@
|
| 133 |
|
$codePath = $this->app['config']['root_dir'].'/app/Plugin/'.$pluginCode; |
| 134 |
|
|
| 135 |
|
$dirList = array('Entity', 'Repository', 'Resource/doctrine/migration'); |
| 136 |
|
foreach ($dirList as $dirName) { |
| 137 |
|
$dirPath = $codePath.'/'.$dirName; |
| 138 |
|
if (!is_dir($dirPath)) { |
| 139 |
|
mkdir($dirPath); |
| 140 |
|
} |
| 141 |
|
if (is_dir($dirPath)) { |
| 142 |
|
$fsList['dir'][$dirPath] = true; |
| 143 |
|
} else { |
| 144 |
|
$fsList['dir'][$dirPath] = false; |
| 145 |
|
} |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
// metadataの設定 |
| 149 |
|
$classNames = array(); |