This will not work. It should be on one line

    $this->record = Frontend{$camel_case_name}Model::get($lastParameter);