Phalcon\Test\ModelTestCase::emptyTable PHP Method

emptyTable() public method

Empties a table in the database.
public emptyTable ( string $table ) : boolean
$table string
return boolean
    public function emptyTable($table)
    {
        $connection = $this->di->get('db');
        $success = $connection->delete($table);
        return $success;
    }