Property | Type | Description | |
---|---|---|---|
$baseClass | |||
$connectionId | |||
$modelClass | |||
$modelPath | |||
$tableName | |||
$tablePrefix |
Property | Type | Description | |
---|---|---|---|
$relations | list of candidate relation code. The array are indexed by AR class names and relation names. Each element represents the code of the one relation in one AR class. |
Method | Description | |
---|---|---|
attributeLabels ( ) | ||
generateLabels ( $table ) | ||
generateRules ( $table ) | ||
getRelations ( $className ) | ||
getTableSchema ( $tableName ) | ||
init ( ) | ||
prepare ( ) | ||
requiredTemplates ( ) | ||
rules ( ) | ||
validateBaseClass ( $attribute, $params ) | ||
validateConnectionId ( $attribute, $params ) | ||
validateModelPath ( $attribute, $params ) | ||
validateTableName ( $attribute, $params ) |
Method | Description | |
---|---|---|
generateClassName ( $tableName ) | ||
generateRelationName ( $tableName, $fkName, $multiple ) : string | Generate a name for use as a relation name (inside relations() function in a model). | |
generateRelations ( ) | ||
getDbConnection ( ) | ||
isRelationTable ( $table ) : boolean | Checks if the given table is a "many to many" pivot table. | |
removePrefix ( $tableName, $addBrackets = true ) |
protected generateRelationName ( $tableName, $fkName, $multiple ) : string | ||
return | string | the relation name |
protected isRelationTable ( $table ) : boolean | ||
return | boolean | true if table matches description of helpter table. |
protected $relations |