From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../orm/src/Query/AST/Functions/AbsFunction.php | 37 ------- .../orm/src/Query/AST/Functions/AvgFunction.php | 27 ----- .../orm/src/Query/AST/Functions/BitAndFunction.php | 43 -------- .../orm/src/Query/AST/Functions/BitOrFunction.php | 43 -------- .../orm/src/Query/AST/Functions/ConcatFunction.php | 58 ---------- .../orm/src/Query/AST/Functions/CountFunction.php | 35 ------ .../Query/AST/Functions/CurrentDateFunction.php | 29 ----- .../Query/AST/Functions/CurrentTimeFunction.php | 29 ----- .../AST/Functions/CurrentTimestampFunction.php | 29 ----- .../src/Query/AST/Functions/DateAddFunction.php | 83 -------------- .../src/Query/AST/Functions/DateDiffFunction.php | 41 ------- .../src/Query/AST/Functions/DateSubFunction.php | 62 ----------- .../orm/src/Query/AST/Functions/FunctionNode.php | 32 ------ .../src/Query/AST/Functions/IdentityFunction.php | 90 ---------------- .../orm/src/Query/AST/Functions/LengthFunction.php | 45 -------- .../orm/src/Query/AST/Functions/LocateFunction.php | 62 ----------- .../orm/src/Query/AST/Functions/LowerFunction.php | 40 ------- .../orm/src/Query/AST/Functions/MaxFunction.php | 27 ----- .../orm/src/Query/AST/Functions/MinFunction.php | 27 ----- .../orm/src/Query/AST/Functions/ModFunction.php | 43 -------- .../orm/src/Query/AST/Functions/SizeFunction.php | 113 ------------------- .../orm/src/Query/AST/Functions/SqrtFunction.php | 40 ------- .../src/Query/AST/Functions/SubstringFunction.php | 58 ---------- .../orm/src/Query/AST/Functions/SumFunction.php | 27 ----- .../orm/src/Query/AST/Functions/TrimFunction.php | 119 --------------------- .../orm/src/Query/AST/Functions/UpperFunction.php | 40 ------- 26 files changed, 1279 deletions(-) delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/AbsFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/AvgFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/BitAndFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/BitOrFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/ConcatFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/CountFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/CurrentDateFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/CurrentTimeFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/CurrentTimestampFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/DateAddFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/DateDiffFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/DateSubFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/FunctionNode.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/IdentityFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/LengthFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/LocateFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/LowerFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/MaxFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/MinFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/ModFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/SizeFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/SqrtFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/SubstringFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/SumFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/TrimFunction.php delete mode 100644 vendor/doctrine/orm/src/Query/AST/Functions/UpperFunction.php (limited to 'vendor/doctrine/orm/src/Query/AST/Functions') diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/AbsFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/AbsFunction.php deleted file mode 100644 index 4edff06..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/AbsFunction.php +++ /dev/null @@ -1,37 +0,0 @@ -walkSimpleArithmeticExpression( - $this->simpleArithmeticExpression, - ) . ')'; - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->simpleArithmeticExpression = $parser->SimpleArithmeticExpression(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/AvgFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/AvgFunction.php deleted file mode 100644 index ba7b7f3..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/AvgFunction.php +++ /dev/null @@ -1,27 +0,0 @@ -aggregateExpression->dispatch($sqlWalker); - } - - public function parse(Parser $parser): void - { - $this->aggregateExpression = $parser->AggregateExpression(); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/BitAndFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/BitAndFunction.php deleted file mode 100644 index f2d3146..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/BitAndFunction.php +++ /dev/null @@ -1,43 +0,0 @@ -getConnection()->getDatabasePlatform(); - - return $platform->getBitAndComparisonExpression( - $this->firstArithmetic->dispatch($sqlWalker), - $this->secondArithmetic->dispatch($sqlWalker), - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->firstArithmetic = $parser->ArithmeticPrimary(); - $parser->match(TokenType::T_COMMA); - $this->secondArithmetic = $parser->ArithmeticPrimary(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/BitOrFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/BitOrFunction.php deleted file mode 100644 index f3f84da..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/BitOrFunction.php +++ /dev/null @@ -1,43 +0,0 @@ -getConnection()->getDatabasePlatform(); - - return $platform->getBitOrComparisonExpression( - $this->firstArithmetic->dispatch($sqlWalker), - $this->secondArithmetic->dispatch($sqlWalker), - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->firstArithmetic = $parser->ArithmeticPrimary(); - $parser->match(TokenType::T_COMMA); - $this->secondArithmetic = $parser->ArithmeticPrimary(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/ConcatFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/ConcatFunction.php deleted file mode 100644 index 5b8d696..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/ConcatFunction.php +++ /dev/null @@ -1,58 +0,0 @@ - */ - public array $concatExpressions = []; - - public function getSql(SqlWalker $sqlWalker): string - { - $platform = $sqlWalker->getConnection()->getDatabasePlatform(); - - $args = []; - - foreach ($this->concatExpressions as $expression) { - $args[] = $sqlWalker->walkStringPrimary($expression); - } - - return $platform->getConcatExpression(...$args); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->firstStringPrimary = $parser->StringPrimary(); - $this->concatExpressions[] = $this->firstStringPrimary; - - $parser->match(TokenType::T_COMMA); - - $this->secondStringPrimary = $parser->StringPrimary(); - $this->concatExpressions[] = $this->secondStringPrimary; - - while ($parser->getLexer()->isNextToken(TokenType::T_COMMA)) { - $parser->match(TokenType::T_COMMA); - $this->concatExpressions[] = $parser->StringPrimary(); - } - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/CountFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/CountFunction.php deleted file mode 100644 index dc926a5..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/CountFunction.php +++ /dev/null @@ -1,35 +0,0 @@ -aggregateExpression->dispatch($sqlWalker); - } - - public function parse(Parser $parser): void - { - $this->aggregateExpression = $parser->AggregateExpression(); - } - - public function getReturnType(): Type - { - return Type::getType(Types::INTEGER); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/CurrentDateFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/CurrentDateFunction.php deleted file mode 100644 index cec9632..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/CurrentDateFunction.php +++ /dev/null @@ -1,29 +0,0 @@ -getConnection()->getDatabasePlatform()->getCurrentDateSQL(); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/CurrentTimeFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/CurrentTimeFunction.php deleted file mode 100644 index 6473fce..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/CurrentTimeFunction.php +++ /dev/null @@ -1,29 +0,0 @@ -getConnection()->getDatabasePlatform()->getCurrentTimeSQL(); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/CurrentTimestampFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/CurrentTimestampFunction.php deleted file mode 100644 index edcd27c..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/CurrentTimestampFunction.php +++ /dev/null @@ -1,29 +0,0 @@ -getConnection()->getDatabasePlatform()->getCurrentTimestampSQL(); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/DateAddFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/DateAddFunction.php deleted file mode 100644 index 12920dc..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/DateAddFunction.php +++ /dev/null @@ -1,83 +0,0 @@ -unit->value)) { - 'second' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateAddSecondsExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'minute' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateAddMinutesExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'hour' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateAddHourExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'day' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateAddDaysExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'week' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateAddWeeksExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'month' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateAddMonthExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'year' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateAddYearsExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - default => throw QueryException::semanticalError( - 'DATE_ADD() only supports units of type second, minute, hour, day, week, month and year.', - ), - }; - } - - /** @throws ASTException */ - private function dispatchIntervalExpression(SqlWalker $sqlWalker): string - { - return $this->intervalExpression->dispatch($sqlWalker); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->firstDateExpression = $parser->ArithmeticPrimary(); - $parser->match(TokenType::T_COMMA); - $this->intervalExpression = $parser->ArithmeticPrimary(); - $parser->match(TokenType::T_COMMA); - $this->unit = $parser->StringPrimary(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/DateDiffFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/DateDiffFunction.php deleted file mode 100644 index 55598c0..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/DateDiffFunction.php +++ /dev/null @@ -1,41 +0,0 @@ -getConnection()->getDatabasePlatform()->getDateDiffExpression( - $this->date1->dispatch($sqlWalker), - $this->date2->dispatch($sqlWalker), - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->date1 = $parser->ArithmeticPrimary(); - $parser->match(TokenType::T_COMMA); - $this->date2 = $parser->ArithmeticPrimary(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/DateSubFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/DateSubFunction.php deleted file mode 100644 index 5363680..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/DateSubFunction.php +++ /dev/null @@ -1,62 +0,0 @@ -unit->value)) { - 'second' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateSubSecondsExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'minute' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateSubMinutesExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'hour' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateSubHourExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'day' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateSubDaysExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'week' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateSubWeeksExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'month' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateSubMonthExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - 'year' => $sqlWalker->getConnection()->getDatabasePlatform()->getDateSubYearsExpression( - $this->firstDateExpression->dispatch($sqlWalker), - $this->dispatchIntervalExpression($sqlWalker), - ), - default => throw QueryException::semanticalError( - 'DATE_SUB() only supports units of type second, minute, hour, day, week, month and year.', - ), - }; - } - - /** @throws ASTException */ - private function dispatchIntervalExpression(SqlWalker $sqlWalker): string - { - return $this->intervalExpression->dispatch($sqlWalker); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/FunctionNode.php b/vendor/doctrine/orm/src/Query/AST/Functions/FunctionNode.php deleted file mode 100644 index 4cc549e..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/FunctionNode.php +++ /dev/null @@ -1,32 +0,0 @@ -walkFunction($this); - } - - abstract public function parse(Parser $parser): void; -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/IdentityFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/IdentityFunction.php deleted file mode 100644 index 1dd1bf5..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/IdentityFunction.php +++ /dev/null @@ -1,90 +0,0 @@ -pathExpression->field !== null); - $entityManager = $sqlWalker->getEntityManager(); - $platform = $entityManager->getConnection()->getDatabasePlatform(); - $quoteStrategy = $entityManager->getConfiguration()->getQuoteStrategy(); - $dqlAlias = $this->pathExpression->identificationVariable; - $assocField = $this->pathExpression->field; - $assoc = $sqlWalker->getMetadataForDqlAlias($dqlAlias)->associationMappings[$assocField]; - $targetEntity = $entityManager->getClassMetadata($assoc->targetEntity); - - assert($assoc->isToOneOwningSide()); - $joinColumn = reset($assoc->joinColumns); - - if ($this->fieldMapping !== null) { - if (! isset($targetEntity->fieldMappings[$this->fieldMapping])) { - throw new QueryException(sprintf('Undefined reference field mapping "%s"', $this->fieldMapping)); - } - - $field = $targetEntity->fieldMappings[$this->fieldMapping]; - $joinColumn = null; - - foreach ($assoc->joinColumns as $mapping) { - if ($mapping->referencedColumnName === $field->columnName) { - $joinColumn = $mapping; - - break; - } - } - - if ($joinColumn === null) { - throw new QueryException(sprintf('Unable to resolve the reference field mapping "%s"', $this->fieldMapping)); - } - } - - // The table with the relation may be a subclass, so get the table name from the association definition - $tableName = $entityManager->getClassMetadata($assoc->sourceEntity)->getTableName(); - - $tableAlias = $sqlWalker->getSQLTableAlias($tableName, $dqlAlias); - $columnName = $quoteStrategy->getJoinColumnName($joinColumn, $targetEntity, $platform); - - return $tableAlias . '.' . $columnName; - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->pathExpression = $parser->SingleValuedAssociationPathExpression(); - - if ($parser->getLexer()->isNextToken(TokenType::T_COMMA)) { - $parser->match(TokenType::T_COMMA); - $parser->match(TokenType::T_STRING); - - $token = $parser->getLexer()->token; - assert($token !== null); - $this->fieldMapping = $token->value; - } - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/LengthFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/LengthFunction.php deleted file mode 100644 index 3994918..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/LengthFunction.php +++ /dev/null @@ -1,45 +0,0 @@ -getConnection()->getDatabasePlatform()->getLengthExpression( - $sqlWalker->walkSimpleArithmeticExpression($this->stringPrimary), - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->stringPrimary = $parser->StringPrimary(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } - - public function getReturnType(): Type - { - return Type::getType(Types::INTEGER); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/LocateFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/LocateFunction.php deleted file mode 100644 index c0d3b4a..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/LocateFunction.php +++ /dev/null @@ -1,62 +0,0 @@ -getConnection()->getDatabasePlatform(); - - $firstString = $sqlWalker->walkStringPrimary($this->firstStringPrimary); - $secondString = $sqlWalker->walkStringPrimary($this->secondStringPrimary); - - if ($this->simpleArithmeticExpression) { - return $platform->getLocateExpression( - $secondString, - $firstString, - $sqlWalker->walkSimpleArithmeticExpression($this->simpleArithmeticExpression), - ); - } - - return $platform->getLocateExpression($secondString, $firstString); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->firstStringPrimary = $parser->StringPrimary(); - - $parser->match(TokenType::T_COMMA); - - $this->secondStringPrimary = $parser->StringPrimary(); - - $lexer = $parser->getLexer(); - if ($lexer->isNextToken(TokenType::T_COMMA)) { - $parser->match(TokenType::T_COMMA); - - $this->simpleArithmeticExpression = $parser->SimpleArithmeticExpression(); - } - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/LowerFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/LowerFunction.php deleted file mode 100644 index 8ae337a..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/LowerFunction.php +++ /dev/null @@ -1,40 +0,0 @@ -walkSimpleArithmeticExpression($this->stringPrimary), - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->stringPrimary = $parser->StringPrimary(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/MaxFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/MaxFunction.php deleted file mode 100644 index 8a6eecf..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/MaxFunction.php +++ /dev/null @@ -1,27 +0,0 @@ -aggregateExpression->dispatch($sqlWalker); - } - - public function parse(Parser $parser): void - { - $this->aggregateExpression = $parser->AggregateExpression(); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/MinFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/MinFunction.php deleted file mode 100644 index 98d73a2..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/MinFunction.php +++ /dev/null @@ -1,27 +0,0 @@ -aggregateExpression->dispatch($sqlWalker); - } - - public function parse(Parser $parser): void - { - $this->aggregateExpression = $parser->AggregateExpression(); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/ModFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/ModFunction.php deleted file mode 100644 index 7c1af0b..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/ModFunction.php +++ /dev/null @@ -1,43 +0,0 @@ -getConnection()->getDatabasePlatform()->getModExpression( - $sqlWalker->walkSimpleArithmeticExpression($this->firstSimpleArithmeticExpression), - $sqlWalker->walkSimpleArithmeticExpression($this->secondSimpleArithmeticExpression), - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->firstSimpleArithmeticExpression = $parser->SimpleArithmeticExpression(); - - $parser->match(TokenType::T_COMMA); - - $this->secondSimpleArithmeticExpression = $parser->SimpleArithmeticExpression(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/SizeFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/SizeFunction.php deleted file mode 100644 index 87ee713..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/SizeFunction.php +++ /dev/null @@ -1,113 +0,0 @@ -collectionPathExpression->field !== null); - $entityManager = $sqlWalker->getEntityManager(); - $platform = $entityManager->getConnection()->getDatabasePlatform(); - $quoteStrategy = $entityManager->getConfiguration()->getQuoteStrategy(); - $dqlAlias = $this->collectionPathExpression->identificationVariable; - $assocField = $this->collectionPathExpression->field; - - $class = $sqlWalker->getMetadataForDqlAlias($dqlAlias); - $assoc = $class->associationMappings[$assocField]; - $sql = 'SELECT COUNT(*) FROM '; - - if ($assoc->isOneToMany()) { - $targetClass = $entityManager->getClassMetadata($assoc->targetEntity); - $targetTableAlias = $sqlWalker->getSQLTableAlias($targetClass->getTableName()); - $sourceTableAlias = $sqlWalker->getSQLTableAlias($class->getTableName(), $dqlAlias); - - $sql .= $quoteStrategy->getTableName($targetClass, $platform) . ' ' . $targetTableAlias . ' WHERE '; - - $owningAssoc = $targetClass->associationMappings[$assoc->mappedBy]; - assert($owningAssoc->isManyToOne()); - - $first = true; - - foreach ($owningAssoc->targetToSourceKeyColumns as $targetColumn => $sourceColumn) { - if ($first) { - $first = false; - } else { - $sql .= ' AND '; - } - - $sql .= $targetTableAlias . '.' . $sourceColumn - . ' = ' - . $sourceTableAlias . '.' . $quoteStrategy->getColumnName($class->fieldNames[$targetColumn], $class, $platform); - } - } else { // many-to-many - assert($assoc->isManyToMany()); - $owningAssoc = $entityManager->getMetadataFactory()->getOwningSide($assoc); - $joinTable = $owningAssoc->joinTable; - - // SQL table aliases - $joinTableAlias = $sqlWalker->getSQLTableAlias($joinTable->name); - $sourceTableAlias = $sqlWalker->getSQLTableAlias($class->getTableName(), $dqlAlias); - - // join to target table - $targetClass = $entityManager->getClassMetadata($assoc->targetEntity); - $sql .= $quoteStrategy->getJoinTableName($owningAssoc, $targetClass, $platform) . ' ' . $joinTableAlias . ' WHERE '; - - $joinColumns = $assoc->isOwningSide() - ? $joinTable->joinColumns - : $joinTable->inverseJoinColumns; - - $first = true; - - foreach ($joinColumns as $joinColumn) { - if ($first) { - $first = false; - } else { - $sql .= ' AND '; - } - - $sourceColumnName = $quoteStrategy->getColumnName( - $class->fieldNames[$joinColumn->referencedColumnName], - $class, - $platform, - ); - - $sql .= $joinTableAlias . '.' . $joinColumn->name - . ' = ' - . $sourceTableAlias . '.' . $sourceColumnName; - } - } - - return '(' . $sql . ')'; - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->collectionPathExpression = $parser->CollectionValuedPathExpression(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/SqrtFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/SqrtFunction.php deleted file mode 100644 index e643663..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/SqrtFunction.php +++ /dev/null @@ -1,40 +0,0 @@ -walkSimpleArithmeticExpression($this->simpleArithmeticExpression), - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->simpleArithmeticExpression = $parser->SimpleArithmeticExpression(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/SubstringFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/SubstringFunction.php deleted file mode 100644 index 5744f08..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/SubstringFunction.php +++ /dev/null @@ -1,58 +0,0 @@ -secondSimpleArithmeticExpression !== null) { - $optionalSecondSimpleArithmeticExpression = $sqlWalker->walkSimpleArithmeticExpression($this->secondSimpleArithmeticExpression); - } - - return $sqlWalker->getConnection()->getDatabasePlatform()->getSubstringExpression( - $sqlWalker->walkStringPrimary($this->stringPrimary), - $sqlWalker->walkSimpleArithmeticExpression($this->firstSimpleArithmeticExpression), - $optionalSecondSimpleArithmeticExpression, - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->stringPrimary = $parser->StringPrimary(); - - $parser->match(TokenType::T_COMMA); - - $this->firstSimpleArithmeticExpression = $parser->SimpleArithmeticExpression(); - - $lexer = $parser->getLexer(); - if ($lexer->isNextToken(TokenType::T_COMMA)) { - $parser->match(TokenType::T_COMMA); - - $this->secondSimpleArithmeticExpression = $parser->SimpleArithmeticExpression(); - } - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/SumFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/SumFunction.php deleted file mode 100644 index 588dce9..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/SumFunction.php +++ /dev/null @@ -1,27 +0,0 @@ -aggregateExpression->dispatch($sqlWalker); - } - - public function parse(Parser $parser): void - { - $this->aggregateExpression = $parser->AggregateExpression(); - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/TrimFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/TrimFunction.php deleted file mode 100644 index e0a3e99..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/TrimFunction.php +++ /dev/null @@ -1,119 +0,0 @@ -walkStringPrimary($this->stringPrimary); - $platform = $sqlWalker->getConnection()->getDatabasePlatform(); - $trimMode = $this->getTrimMode(); - - if ($this->trimChar !== false) { - return $platform->getTrimExpression( - $stringPrimary, - $trimMode, - $platform->quoteStringLiteral($this->trimChar), - ); - } - - return $platform->getTrimExpression($stringPrimary, $trimMode); - } - - public function parse(Parser $parser): void - { - $lexer = $parser->getLexer(); - - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->parseTrimMode($parser); - - if ($lexer->isNextToken(TokenType::T_STRING)) { - $parser->match(TokenType::T_STRING); - - assert($lexer->token !== null); - $this->trimChar = $lexer->token->value; - } - - if ($this->leading || $this->trailing || $this->both || ($this->trimChar !== false)) { - $parser->match(TokenType::T_FROM); - } - - $this->stringPrimary = $parser->StringPrimary(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } - - /** @psalm-return TrimMode::* */ - private function getTrimMode(): TrimMode|int - { - if ($this->leading) { - return TrimMode::LEADING; - } - - if ($this->trailing) { - return TrimMode::TRAILING; - } - - if ($this->both) { - return TrimMode::BOTH; - } - - return TrimMode::UNSPECIFIED; - } - - private function parseTrimMode(Parser $parser): void - { - $lexer = $parser->getLexer(); - assert($lexer->lookahead !== null); - $value = $lexer->lookahead->value; - - if (strcasecmp('leading', $value) === 0) { - $parser->match(TokenType::T_LEADING); - - $this->leading = true; - - return; - } - - if (strcasecmp('trailing', $value) === 0) { - $parser->match(TokenType::T_TRAILING); - - $this->trailing = true; - - return; - } - - if (strcasecmp('both', $value) === 0) { - $parser->match(TokenType::T_BOTH); - - $this->both = true; - - return; - } - } -} diff --git a/vendor/doctrine/orm/src/Query/AST/Functions/UpperFunction.php b/vendor/doctrine/orm/src/Query/AST/Functions/UpperFunction.php deleted file mode 100644 index 1ecef66..0000000 --- a/vendor/doctrine/orm/src/Query/AST/Functions/UpperFunction.php +++ /dev/null @@ -1,40 +0,0 @@ -walkSimpleArithmeticExpression($this->stringPrimary), - ); - } - - public function parse(Parser $parser): void - { - $parser->match(TokenType::T_IDENTIFIER); - $parser->match(TokenType::T_OPEN_PARENTHESIS); - - $this->stringPrimary = $parser->StringPrimary(); - - $parser->match(TokenType::T_CLOSE_PARENTHESIS); - } -} -- cgit v1.2.3