Метод | Описание | |
---|---|---|
createRelationRoute ( $relation, $action ) | ||
generateRelationTo ( $relation ) | ||
getColumnByAttribute ( $attribute, $model = null ) | ||
getModelByTableName ( $name ) | ||
getModelNameAttribute ( $modelClass ) | ||
getModelRelations ( ActiveRecord $modelClass, array $types = ['belongs_to', 'many_many', 'has_many', 'has_one', 'pivot'] ) : array | Finds relations of a model class. | |
getRelationByColumn ( $model, $column ) : null | |
||
isPivotRelation ( |
public getModelRelations ( ActiveRecord $modelClass, array $types = ['belongs_to', 'many_many', 'has_many', 'has_one', 'pivot'] ) : array | ||
$modelClass | ActiveRecord | |
$types | array | |
Результат | array |
public getRelationByColumn ( $model, $column ) : null | |
||
$column | ||
Результат | null | |
public isPivotRelation ( |
||
$relation |