truncateTable() public method

Builds and executes a SQL statement for truncating a DB table.
public truncateTable ( string $table )
$table string the table to be truncated. The name will be properly quoted by the method.
Exemplo n.º 1
0
 /**
  * @inheritdoc
  * Note: table will be auto pefixied if [[$autoWrapTableNames]] is true.
  */
 public function truncateTable($table)
 {
     $table = $this->autoWrappedTableName($table);
     return parent::truncateTable($table);
 }