Class hscstudio\heart\modules\gii\model\Generator

Inheritancehscstudio\heart\modules\gii\model\Generator » yii\gii\generators\model\Generator » yii\gii\Generator
Available since version2.0

This generator will generate one or multiple ActiveRecord classes for the specified database table.

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
checkPivotTable() Checks if the given table is a pivot table. yii\gii\generators\model\Generator
generateClassName() Generates a class name from the specified table name. hscstudio\heart\modules\gii\model\Generator
generateRelationLink() Generates the link parameter to be used in generating the relation declaration. yii\gii\generators\model\Generator
generateRelationName() Generate a relation name for the specified table and a base name. yii\gii\generators\model\Generator
generateRelations() yii\gii\generators\model\Generator
getDbConnection() yii\gii\generators\model\Generator
getTableNames() yii\gii\generators\model\Generator
isColumnAutoIncremental() Checks if any of the specified columns is auto incremental. yii\gii\generators\model\Generator

Method Details

generateClassName() protected method

Generates a class name from the specified table name.

string generateClassName$tableName )
$tableName string

The table name (which may contain schema prefix)

return string

The generated class name

getDescription() public method

void getDescription( )
getName() public method

void getName( )