Services\ModelService::getSearchModel PHP Method

getSearchModel() protected method

Get an instance of the model class to fill in with search details.
protected getSearchModel ( ) : BaseActiveRecord
return BaseActiveRecord
    protected function getSearchModel()
    {
        $class = static::$primary_model;
        return new $class(null);
    }