public function delete($delete = null, $alias = null)
    {
        $this->type = self::DELETE;

        if (!$delete) {
            return $this;
        }

        return $this->add('from', array(
            'table' => $delete,
            'alias' => $alias
        ));
    }
public function delete($delete = null, $alias = null)
    {
        $this->type = self::DELETE;

        if (!$delete) {
            return $this;
        }

        return $this->add('from', array(
            'table' => $delete,
            'alias' => $alias
        ));
    }
public function delete ( $ delete = null , $ alias = null ) { $ this -> type = self :: DELETE ; if ( ! $ delete ) { return $ this ; } return $ this -> add ( 'from' , array ( 'table' => $ delete , 'alias' => $ alias ) ) ; }
Turns the query being built into a bulk delete query that ranges over
a certain table.

<code>
$qb = $conn->createQueryBuilder()
->delete('users', 'u')
->where('u.id = :user_id');
->setParameter(':user_id', 1);
</code>

@param string $delete The table whose rows are subject to the deletion.
@param string $alias The table alias used in the constructed query.

@return \Doctrine\DBAL\Query\QueryBuilder This QueryBuilder instance.
Turns the query being built into a bulk delete query that ranges over a certain table .