Skip to content

Syntax Error in Example #3479

@DavidBruchmann

Description

@DavidBruchmann

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)
{
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions