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. |
Please login to continue.