lib/gii/cascadeTypeModule/Generator.php
public function validateModelClass()
    {
        if ($this->isReservedKeyword($this->modelClass)) {
            $this->addError('modelClass', 'Class name cannot be a reserved PHP keyword.');
        }
        if (strpos($this->tableName, '*') === false && $this->modelClass == '') {
            $this->addError('modelClass', 'Model Class cannot be blank.');
        }
    }
public function validateModelClass()
    {
        if ($this->isReservedKeyword($this->modelClass)) {
            $this->addError('modelClass', 'Class name cannot be a reserved PHP keyword.');
        }
        if (strpos($this->tableName, '*') === false && $this->modelClass == '') {
            $this->addError('modelClass', 'Model Class cannot be blank.');
        }
    }
Validates the [[modelClass]] attribute.