Bug #87850

Syntax error in example in comment

Added by David Bruchmann 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2019-03-06
Due date:
% Done:

0%

Estimated time:
0.02 h
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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.
     *
     * 
     *     $qb = $conn->createQueryBuilder()
     *         ->delete('users', 'u')
     *         ->where('u.id = :user_id');
     *         ->setParameter(':user_id', 1);
     * 
     *
     * @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) {
...

History

#1 Updated by Susanne Moog 4 months ago

  • Status changed from New to Closed

This is not a TYPO3 issue but in issue in upstream dbal: https://github.com/doctrine/dbal/ - please report the issue there.

Also available in: Atom PDF