Class schmunk42\giiant\generators\crud\providers\core\RelationProvider

Inheritanceschmunk42\giiant\generators\crud\providers\core\RelationProvider » schmunk42\giiant\base\Provider » yii\base\Object

Property Details

$inputWidget public property

Can be null (default) or select2

public null $inputWidget null
$skipVirtualAttributes public property (available since version 0.6)

Wheter to skip non-existing columns in relation grid

public bool $skipVirtualAttributes false

Method Details

activeField() public method

Formatter for relation form inputs.

Renders a drop-down list for a hasOne/belongsTo relation

public null|string activeField ( $attribute )
$attribute
attributeFormat() public method

Formatter for detail view relation attributes.

Renders a link to the related detail view

public null|string attributeFormat ( $attribute )
$attribute
columnFormat() public method

Formatter for relation grid columns.

Renders a link to the related detail view

public null|string columnFormat ( $attribute, $model )
$attribute
$model

ActiveRecord

relationGrid() public method

Renders a grid view for a given relation.

public mixed|string relationGrid ( $name, $relation, $showAllRecords false )
$name
$relation
$showAllRecords bool