Class hscstudio\heart\modules\gii\model\Generator
Inheritance | hscstudio\heart\modules\gii\model\Generator » yii\gii\generators\model\Generator » yii\gii\Generator |
---|---|
Available since version | 2.0 |
This generator will generate one or multiple ActiveRecord classes for the specified database table.
Public Properties
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$classNames | yii\gii\generators\model\Generator | ||
$tableNames | yii\gii\generators\model\Generator |
Public Methods
Protected Methods
Method | Description | Defined 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
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 |
---|
void getDescription( ) |
void getName( ) |