Closed wigginskuang closed 9 months ago
php : 7.4.30 yii2 : 2.0.49.2
./yii batch/models --skip-tables=migration --model-base-class='common\models\CommonActiveRecord' --use-class-constant=1 Error: Unknown option: --use-class-constant. Options available: --color, --interactive, --help, --silentExitOnException, --template, --overwrite, --useTimestampBehavior, --timestampBehaviorClass, --createdAtColumn, --updatedAtColumn, --useTranslatableBehavior, --languageTableName, --languageCodeColumn, --useBlameableBehavior, --createdByColumn, --updatedByColumn, --extendedModels, --enableI18N, --messageCategory, --singularEntities, --tables, --skipTables, --tablePrefix, --modelDb, --modelNamespace, --modelBaseClass, --modelBaseTraits, --modelBaseClassPrefix, --modelBaseClassSuffix, --modelRemoveDuplicateRelations, --modelCacheRelationsData, --modelGenerateRelations, --modelGenerateJunctionRelationMode, --modelGenerateQuery, --modelQueryNamespace, --modelQueryBaseClass, --modelGenerateLabelsFromComments, --modelGenerateHintsFromComments, --crudTidyOutput, --crudFixOutput, --crudControllerNamespace, --crudSearchModelNamespace, --crudSearchModelSuffix, --crudViewPath, --crudPathPrefix, --crudProviders, --crudSkipRelations, --crudBaseControllerClass, --crudAccessFilter, --crudTemplate, --crudFormLayout, --crudOverwriteSearchModelClass, --crudOverwriteRestControllerClass, --crudOverwriteControllerClass, --generateAccessFilterMigrations
Which version of giiant are you using? As far as I know, there is and has never been such an option in the batch command.
CC: @schmunk42
oh, it is my mistake
php : 7.4.30 yii2 : 2.0.49.2