Skip to content

Commit

Permalink
Fixed CrudController console command (#700)
Browse files Browse the repository at this point in the history
There is error: Undefined variable: camlizeModelName.
  • Loading branch information
chemezov authored Dec 13, 2021
1 parent 908b17d commit 7d6ac68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/CrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public function actionCreate()
while ($modelSelection) {
$modelName = $this->prompt('Model Name (e.g. Album):', ['required' => true, 'default' => $this->getModelNameSuggestion()]);
$camelizeModelName = Inflector::camelize($modelName);
if ($modelName !== $camlizeModelName) {
if ($modelName !== $camelizeModelName) {
if ($this->confirm("We have camelized the model name to '$camelizeModelName'. Do you want to continue with this name?")) {
$modelName = $camelizeModelName;
$modelSelection = false;
Expand Down

0 comments on commit 7d6ac68

Please sign in to comment.