Doctrine\DBAL\Platforms\AbstractPlatform::getTruncateTableSQL
Generate a Truncate Table SQL statement for a given table.
Cascade is not supported on many platforms but would optionally cascade the truncate by following the foreign keys.
Signature
public function getTruncateTableSQL(string
$tableName,
[boolean
$cascade = false] )
Parameters
$tableName
— string$cascade
— boolean
Returns
- string