Skip to content

Commit

Permalink
Fix gii model generator (yiisoft#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeFreeman committed Jan 19, 2019
1 parent eaa35e0 commit ba188d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gii/model/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function generate()
$attributes = array_merge(['_id'], $customAttributes);
}

$className = $this->generateClassName($collectionName);
$className = $this->modelClass ?: $this->generateClassName($collectionName);
$params = [
'collectionName' => $collectionName,
'className' => $className,
Expand Down

0 comments on commit ba188d0

Please sign in to comment.