summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Tools/Pagination/RowNumberOverFunction.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-10-18 00:08:23 +0200
committerpolo <ordipolo@gmx.fr>2026-10-18 00:10:03 +0200
commit05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch)
treecf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/doctrine/orm/src/Tools/Pagination/RowNumberOverFunction.php
parent32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff)
downloadAppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.gz
AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.bz2
AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.zip
sortie de vendor du dépôt, oubli dans config-template.ini
Diffstat (limited to 'vendor/doctrine/orm/src/Tools/Pagination/RowNumberOverFunction.php')
-rw-r--r--vendor/doctrine/orm/src/Tools/Pagination/RowNumberOverFunction.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/vendor/doctrine/orm/src/Tools/Pagination/RowNumberOverFunction.php b/vendor/doctrine/orm/src/Tools/Pagination/RowNumberOverFunction.php
deleted file mode 100644
index a0fdd01..0000000
--- a/vendor/doctrine/orm/src/Tools/Pagination/RowNumberOverFunction.php
+++ /dev/null
@@ -1,40 +0,0 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Tools\Pagination;
6
7use Doctrine\ORM\Query\AST\Functions\FunctionNode;
8use Doctrine\ORM\Query\AST\OrderByClause;
9use Doctrine\ORM\Query\Parser;
10use Doctrine\ORM\Query\SqlWalker;
11use Doctrine\ORM\Tools\Pagination\Exception\RowNumberOverFunctionNotEnabled;
12
13use function trim;
14
15/**
16 * RowNumberOverFunction
17 *
18 * Provides ROW_NUMBER() OVER(ORDER BY...) construct for use in LimitSubqueryOutputWalker
19 */
20class RowNumberOverFunction extends FunctionNode
21{
22 public OrderByClause $orderByClause;
23
24 public function getSql(SqlWalker $sqlWalker): string
25 {
26 return 'ROW_NUMBER() OVER(' . trim($sqlWalker->walkOrderByClause(
27 $this->orderByClause,
28 )) . ')';
29 }
30
31 /**
32 * @throws RowNumberOverFunctionNotEnabled
33 *
34 * @inheritdoc
35 */
36 public function parse(Parser $parser): void
37 {
38 throw RowNumberOverFunctionNotEnabled::create();
39 }
40}