Issue Bug Closed

#87850Syntax error in example in comment

David Bruchmann 03/06/19, 09:49 updated 03/11/19, 21:15

Description

In Doctrine\DBAL\Query\QueryBilder the semikolon in the line “->where(‘u.id = :user_id’);” is wrong:

    /**
     * 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 $this This QueryBuilder instance.
     */
    public function delete($delete = null, $alias = null)
    {
    ...

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.