Crud\Controller\Component\CrudComponent::useModel PHP Method

useModel() public method

Sets the model class to be used during the action execution.
public useModel ( string $modelName ) : void
$modelName string The name of the model to load.
return void
    public function useModel($modelName)
    {
        $this->_controller->loadModel($modelName);
        list(, $this->_modelName) = pluginSplit($modelName);
    }