test\BaseActiveFixture getModel()

getModel() public method

Returns the AR model by the specified model name.

A model name is the key of the corresponding data row in $data.

public null|yii\db\ActiveRecord getModel ( $name )
$name string

The model name.

return null|yii\db\ActiveRecord

The AR model, or null if the model cannot be found in the database

throws yii\base\InvalidConfigException

if $modelClass is not set.

doc_Yii
2016-10-30 17:13:08
Comments
Leave a Comment

Please login to continue.