Update Generar.php with generateTableName function

generateTableName function returns the tablename with the database prefix if enabled (public $useTablePefix).
{{%tablename_without_prefix}}

requires change in Model 
public static function tableName()
{
   return '<?= $generator->generateTablename($tableName) ?>';
}