You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try to generate model via console, for example:
php yii gii/mongoDbModel --db="hobTestMongo" --collectionName="updates" --modelClass="DlcUpdates" --color=1 --ns="app\modules\appAdmin\models\mongo" --attributeList="data,minVersion,maxVersion,platform"
What's expected?
As I i explicitly specified modelClass as DLCUpdates, it ignores it
What do you get instead?
The following files will be generated:
modules/appAdmin/models/mongo/Updates.php
Additional info
I suppose the reason is core code: $className = $this->generateClassName($collectionName);
plus i didn't find usages of this method: public function validateModelClass()
Q
A
Yii version
2.0.15.1
Yii MongoDB version
2.1.7
MongoDB server version
3.2.12
PHP version
7.2
Operating system
Ubuntu
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
try to generate model via console, for example:
php yii gii/mongoDbModel --db="hobTestMongo" --collectionName="updates" --modelClass="DlcUpdates" --color=1 --ns="app\modules\appAdmin\models\mongo" --attributeList="data,minVersion,maxVersion,platform"
What's expected?
As I i explicitly specified modelClass as DLCUpdates, it ignores it
What do you get instead?
The following files will be generated:
modules/appAdmin/models/mongo/Updates.php
Additional info
I suppose the reason is core code:
$className = $this->generateClassName($collectionName);
plus i didn't find usages of this method:
public function validateModelClass()
The text was updated successfully, but these errors were encountered: