|
|
@ -210,7 +210,7 @@ abstract class Generator extends Model |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getStickyDataFile() |
|
|
|
public function getStickyDataFile() |
|
|
|
{ |
|
|
|
{ |
|
|
|
return Yii::$app->getRuntimePath() . '/gii-' . Yii::getVersion() . '/' . str_replace('\\', '-',get_class($this)) . '.php'; |
|
|
|
return Yii::$app->getRuntimePath() . '/gii-' . Yii::getVersion() . '/' . str_replace('\\', '-', get_class($this)) . '.php'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -225,7 +225,7 @@ abstract class Generator extends Model |
|
|
|
{ |
|
|
|
{ |
|
|
|
$lines = array('Generating code using template "' . $this->getTemplatePath() . '"...'); |
|
|
|
$lines = array('Generating code using template "' . $this->getTemplatePath() . '"...'); |
|
|
|
$hasError = false; |
|
|
|
$hasError = false; |
|
|
|
foreach ($files as $file) {; |
|
|
|
foreach ($files as $file) { |
|
|
|
$relativePath = $file->getRelativePath(); |
|
|
|
$relativePath = $file->getRelativePath(); |
|
|
|
if (isset($answers[$file->id]) && $file->operation !== CodeFile::OP_SKIP) { |
|
|
|
if (isset($answers[$file->id]) && $file->operation !== CodeFile::OP_SKIP) { |
|
|
|
$error = $file->save(); |
|
|
|
$error = $file->save(); |
|
|
|