Project

General

Profile

Actions

Bug #88592

closed

QueryBuilder and join functions

Added by Kevin Meckl almost 5 years ago. Updated about 4 years ago.

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

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
QueryBuilder
Complexity:
Is Regression:
Sprint Focus:

Description

Hello, the third parameter from join(), leftJoin(), etc. ist required, but null ist the default value.

When the third parameter is empty, an sql error is occurred.

See: /typo3/sysext/core/Classes/Database/Query/QueryBuilder.php line 526
See: /vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php line 1332

Actions #1

Updated by Susanne Moog about 4 years ago

  • Status changed from New to Closed

join methods third parameter (alias) is required and must be a string
--> `public function join(string $fromAlias, string $join, string $alias, string $condition = null)`

which fits with the parent definition of doctrine.

See also https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Database/Query/QueryBuilder.php#L526 (same in 9.5)

Actions

Also available in: Atom PDF