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 --- vendor/doctrine/orm/src/Id/SequenceGenerator.php | 112 ----------------------- 1 file changed, 112 deletions(-) delete mode 100644 vendor/doctrine/orm/src/Id/SequenceGenerator.php (limited to 'vendor/doctrine/orm/src/Id/SequenceGenerator.php') diff --git a/vendor/doctrine/orm/src/Id/SequenceGenerator.php b/vendor/doctrine/orm/src/Id/SequenceGenerator.php deleted file mode 100644 index 659bb58..0000000 --- a/vendor/doctrine/orm/src/Id/SequenceGenerator.php +++ /dev/null @@ -1,112 +0,0 @@ -maxValue === null || $this->nextValue === $this->maxValue) { - // Allocate new values - $connection = $em->getConnection(); - $sql = $connection->getDatabasePlatform()->getSequenceNextValSQL($this->sequenceName); - - if ($connection instanceof PrimaryReadReplicaConnection) { - $connection->ensureConnectedToPrimary(); - } - - $this->nextValue = (int) $connection->fetchOne($sql); - $this->maxValue = $this->nextValue + $this->allocationSize; - } - - return $this->nextValue++; - } - - /** - * Gets the maximum value of the currently allocated bag of values. - */ - public function getCurrentMaxValue(): int|null - { - return $this->maxValue; - } - - /** - * Gets the next value that will be returned by generate(). - */ - public function getNextValue(): int - { - return $this->nextValue; - } - - /** @deprecated without replacement. */ - final public function serialize(): string - { - Deprecation::trigger( - 'doctrine/orm', - 'https://github.com/doctrine/orm/pull/11468', - '%s() is deprecated, use __serialize() instead. %s won\'t implement the Serializable interface anymore in ORM 4.', - __METHOD__, - self::class, - ); - - return serialize($this->__serialize()); - } - - /** @return array */ - public function __serialize(): array - { - return [ - 'allocationSize' => $this->allocationSize, - 'sequenceName' => $this->sequenceName, - ]; - } - - /** @deprecated without replacement. */ - final public function unserialize(string $serialized): void - { - Deprecation::trigger( - 'doctrine/orm', - 'https://github.com/doctrine/orm/pull/11468', - '%s() is deprecated, use __unserialize() instead. %s won\'t implement the Serializable interface anymore in ORM 4.', - __METHOD__, - self::class, - ); - - $this->__unserialize(unserialize($serialized)); - } - - /** @param array $data */ - public function __unserialize(array $data): void - { - $this->sequenceName = $data['sequenceName']; - $this->allocationSize = $data['allocationSize']; - } -} -- cgit v1.2.3