array('tablePrefix, tableName, modelPath','match','pattern'=>'/^(\w+[\w\.]*|\*?|\w+\.\*)$/','message'=>'{attribute} should only contain word characters, dots, and an optional ending asterisk.'),
array('tablePrefix, tableName, modelPath','match','pattern'=>'/^(\w+[\w\.]*|\*?|\w+\.\*)$/','message'=>'{attribute} should only contain word characters, dots, and an optional ending asterisk.'),
array('connectionId','validateConnectionId'),
array('tableName','validateTableName'),
array('tableName','validateTableName'),
array('tablePrefix, modelClass','match','pattern'=>'/^[a-zA-Z_]\w*$/','message'=>'{attribute} should only contain word characters.'),
array('tablePrefix, modelClass','match','pattern'=>'/^[a-zA-Z_]\w*$/','message'=>'{attribute} should only contain word characters.'),
array('baseClass','match','pattern'=>'/^[a-zA-Z_][\w\\\\]*$/','message'=>'{attribute} should only contain word characters and backslashes.'),
array('baseClass','match','pattern'=>'/^[a-zA-Z_][\w\\\\]*$/','message'=>'{attribute} should only contain word characters and backslashes.'),
...
@@ -57,7 +58,7 @@ class Generator extends \yii\gii\Generator
...
@@ -57,7 +58,7 @@ class Generator extends \yii\gii\Generator