diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-18 00:08:23 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-18 00:10:03 +0200 |
| commit | 05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch) | |
| tree | cf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/doctrine/orm/src/Exception | |
| parent | 32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff) | |
| download | AppliGestionPHP-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/Exception')
17 files changed, 0 insertions, 334 deletions
diff --git a/vendor/doctrine/orm/src/Exception/ConfigurationException.php b/vendor/doctrine/orm/src/Exception/ConfigurationException.php deleted file mode 100644 index 45cf83f..0000000 --- a/vendor/doctrine/orm/src/Exception/ConfigurationException.php +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | interface ConfigurationException extends ORMException | ||
| 8 | { | ||
| 9 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/EntityIdentityCollisionException.php b/vendor/doctrine/orm/src/Exception/EntityIdentityCollisionException.php deleted file mode 100644 index 0af3162..0000000 --- a/vendor/doctrine/orm/src/Exception/EntityIdentityCollisionException.php +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use Exception; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | final class EntityIdentityCollisionException extends Exception implements ORMException | ||
| 12 | { | ||
| 13 | public static function create(object $existingEntity, object $newEntity, string $idHash): self | ||
| 14 | { | ||
| 15 | return new self( | ||
| 16 | sprintf( | ||
| 17 | <<<'EXCEPTION' | ||
| 18 | While adding an entity of class %s with an ID hash of "%s" to the identity map, | ||
| 19 | another object of class %s was already present for the same ID. This exception | ||
| 20 | is a safeguard against an internal inconsistency - IDs should uniquely map to | ||
| 21 | entity object instances. This problem may occur if: | ||
| 22 | |||
| 23 | - you use application-provided IDs and reuse ID values; | ||
| 24 | - database-provided IDs are reassigned after truncating the database without | ||
| 25 | clearing the EntityManager; | ||
| 26 | - you might have been using EntityManager#getReference() to create a reference | ||
| 27 | for a nonexistent ID that was subsequently (by the RDBMS) assigned to another | ||
| 28 | entity. | ||
| 29 | |||
| 30 | Otherwise, it might be an ORM-internal inconsistency, please report it. | ||
| 31 | EXCEPTION | ||
| 32 | , | ||
| 33 | $newEntity::class, | ||
| 34 | $idHash, | ||
| 35 | $existingEntity::class, | ||
| 36 | ), | ||
| 37 | ); | ||
| 38 | } | ||
| 39 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/EntityManagerClosed.php b/vendor/doctrine/orm/src/Exception/EntityManagerClosed.php deleted file mode 100644 index a769202..0000000 --- a/vendor/doctrine/orm/src/Exception/EntityManagerClosed.php +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use RuntimeException; | ||
| 8 | |||
| 9 | final class EntityManagerClosed extends RuntimeException implements ManagerException | ||
| 10 | { | ||
| 11 | public static function create(): self | ||
| 12 | { | ||
| 13 | return new self('The EntityManager is closed.'); | ||
| 14 | } | ||
| 15 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/EntityMissingAssignedId.php b/vendor/doctrine/orm/src/Exception/EntityMissingAssignedId.php deleted file mode 100644 index d566436..0000000 --- a/vendor/doctrine/orm/src/Exception/EntityMissingAssignedId.php +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use LogicException; | ||
| 8 | |||
| 9 | use function get_debug_type; | ||
| 10 | |||
| 11 | final class EntityMissingAssignedId extends LogicException implements ORMException | ||
| 12 | { | ||
| 13 | public static function forField(object $entity, string $field): self | ||
| 14 | { | ||
| 15 | return new self('Entity of type ' . get_debug_type($entity) . " is missing an assigned ID for field '" . $field . "'. " . | ||
| 16 | 'The identifier generation strategy for this entity requires the ID field to be populated before ' . | ||
| 17 | 'EntityManager#persist() is called. If you want automatically generated identifiers instead ' . | ||
| 18 | 'you need to adjust the metadata mapping accordingly.'); | ||
| 19 | } | ||
| 20 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/InvalidEntityRepository.php b/vendor/doctrine/orm/src/Exception/InvalidEntityRepository.php deleted file mode 100644 index c28143d..0000000 --- a/vendor/doctrine/orm/src/Exception/InvalidEntityRepository.php +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use Doctrine\ORM\EntityRepository; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | final class InvalidEntityRepository extends LogicException implements ConfigurationException | ||
| 11 | { | ||
| 12 | public static function fromClassName(string $className): self | ||
| 13 | { | ||
| 14 | return new self( | ||
| 15 | "Invalid repository class '" . $className . "'. It must be a " . EntityRepository::class . '.', | ||
| 16 | ); | ||
| 17 | } | ||
| 18 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/InvalidHydrationMode.php b/vendor/doctrine/orm/src/Exception/InvalidHydrationMode.php deleted file mode 100644 index d07d84c..0000000 --- a/vendor/doctrine/orm/src/Exception/InvalidHydrationMode.php +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use LogicException; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | final class InvalidHydrationMode extends LogicException implements ManagerException | ||
| 12 | { | ||
| 13 | public static function fromMode(string $mode): self | ||
| 14 | { | ||
| 15 | return new self(sprintf('"%s" is an invalid hydration mode.', $mode)); | ||
| 16 | } | ||
| 17 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/ManagerException.php b/vendor/doctrine/orm/src/Exception/ManagerException.php deleted file mode 100644 index f9bc7ff..0000000 --- a/vendor/doctrine/orm/src/Exception/ManagerException.php +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use Throwable; | ||
| 8 | |||
| 9 | interface ManagerException extends Throwable | ||
| 10 | { | ||
| 11 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/MissingIdentifierField.php b/vendor/doctrine/orm/src/Exception/MissingIdentifierField.php deleted file mode 100644 index 2c02db4..0000000 --- a/vendor/doctrine/orm/src/Exception/MissingIdentifierField.php +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use LogicException; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | final class MissingIdentifierField extends LogicException implements ManagerException | ||
| 12 | { | ||
| 13 | public static function fromFieldAndClass(string $fieldName, string $className): self | ||
| 14 | { | ||
| 15 | return new self(sprintf( | ||
| 16 | 'The identifier %s is missing for a query of %s', | ||
| 17 | $fieldName, | ||
| 18 | $className, | ||
| 19 | )); | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/MissingMappingDriverImplementation.php b/vendor/doctrine/orm/src/Exception/MissingMappingDriverImplementation.php deleted file mode 100644 index ce5104b..0000000 --- a/vendor/doctrine/orm/src/Exception/MissingMappingDriverImplementation.php +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use LogicException; | ||
| 8 | |||
| 9 | final class MissingMappingDriverImplementation extends LogicException implements ManagerException | ||
| 10 | { | ||
| 11 | public static function create(): self | ||
| 12 | { | ||
| 13 | return new self( | ||
| 14 | "It's a requirement to specify a Metadata Driver and pass it " . | ||
| 15 | 'to Doctrine\\ORM\\Configuration::setMetadataDriverImpl().', | ||
| 16 | ); | ||
| 17 | } | ||
| 18 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/MultipleSelectorsFoundException.php b/vendor/doctrine/orm/src/Exception/MultipleSelectorsFoundException.php deleted file mode 100644 index 8084d66..0000000 --- a/vendor/doctrine/orm/src/Exception/MultipleSelectorsFoundException.php +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use LogicException; | ||
| 8 | |||
| 9 | use function implode; | ||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | final class MultipleSelectorsFoundException extends LogicException implements ORMException | ||
| 13 | { | ||
| 14 | public const MULTIPLE_SELECTORS_FOUND_EXCEPTION = 'Multiple selectors found: %s. Please select only one.'; | ||
| 15 | |||
| 16 | /** @param string[] $selectors */ | ||
| 17 | public static function create(array $selectors): self | ||
| 18 | { | ||
| 19 | return new self( | ||
| 20 | sprintf( | ||
| 21 | self::MULTIPLE_SELECTORS_FOUND_EXCEPTION, | ||
| 22 | implode(', ', $selectors), | ||
| 23 | ), | ||
| 24 | ); | ||
| 25 | } | ||
| 26 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/NotSupported.php b/vendor/doctrine/orm/src/Exception/NotSupported.php deleted file mode 100644 index 9192f87..0000000 --- a/vendor/doctrine/orm/src/Exception/NotSupported.php +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use LogicException; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | /** @deprecated */ | ||
| 12 | final class NotSupported extends LogicException implements ORMException | ||
| 13 | { | ||
| 14 | public static function create(): self | ||
| 15 | { | ||
| 16 | return new self('This behaviour is (currently) not supported by Doctrine 2'); | ||
| 17 | } | ||
| 18 | |||
| 19 | public static function createForDbal3(string $context): self | ||
| 20 | { | ||
| 21 | return new self(sprintf( | ||
| 22 | <<<'EXCEPTION' | ||
| 23 | Context: %s | ||
| 24 | Problem: Feature was deprecated in doctrine/dbal 2.x and is not supported by installed doctrine/dbal:3.x | ||
| 25 | Solution: See the doctrine/deprecations logs for new alternative approaches. | ||
| 26 | EXCEPTION | ||
| 27 | , | ||
| 28 | $context, | ||
| 29 | )); | ||
| 30 | } | ||
| 31 | |||
| 32 | public static function createForPersistence3(string $context): self | ||
| 33 | { | ||
| 34 | return new self(sprintf( | ||
| 35 | <<<'EXCEPTION' | ||
| 36 | Context: %s | ||
| 37 | Problem: Feature was deprecated in doctrine/persistence 2.x and is not supported by installed doctrine/persistence:3.x | ||
| 38 | Solution: See the doctrine/deprecations logs for new alternative approaches. | ||
| 39 | EXCEPTION | ||
| 40 | , | ||
| 41 | $context, | ||
| 42 | )); | ||
| 43 | } | ||
| 44 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/ORMException.php b/vendor/doctrine/orm/src/Exception/ORMException.php deleted file mode 100644 index a59b483..0000000 --- a/vendor/doctrine/orm/src/Exception/ORMException.php +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use Throwable; | ||
| 8 | |||
| 9 | interface ORMException extends Throwable | ||
| 10 | { | ||
| 11 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/PersisterException.php b/vendor/doctrine/orm/src/Exception/PersisterException.php deleted file mode 100644 index 2563a46..0000000 --- a/vendor/doctrine/orm/src/Exception/PersisterException.php +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use Doctrine\ORM\Persisters\PersisterException as BasePersisterException; | ||
| 8 | |||
| 9 | class PersisterException extends BasePersisterException | ||
| 10 | { | ||
| 11 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/RepositoryException.php b/vendor/doctrine/orm/src/Exception/RepositoryException.php deleted file mode 100644 index 3b2d51b..0000000 --- a/vendor/doctrine/orm/src/Exception/RepositoryException.php +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * This interface should be implemented by all exceptions in the Repository | ||
| 9 | * namespace. | ||
| 10 | */ | ||
| 11 | interface RepositoryException extends ORMException | ||
| 12 | { | ||
| 13 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/SchemaToolException.php b/vendor/doctrine/orm/src/Exception/SchemaToolException.php deleted file mode 100644 index e4477d0..0000000 --- a/vendor/doctrine/orm/src/Exception/SchemaToolException.php +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use Throwable; | ||
| 8 | |||
| 9 | interface SchemaToolException extends Throwable | ||
| 10 | { | ||
| 11 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/UnexpectedAssociationValue.php b/vendor/doctrine/orm/src/Exception/UnexpectedAssociationValue.php deleted file mode 100644 index cf3ca18..0000000 --- a/vendor/doctrine/orm/src/Exception/UnexpectedAssociationValue.php +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use Doctrine\ORM\Cache\Exception\CacheException; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | final class UnexpectedAssociationValue extends CacheException | ||
| 12 | { | ||
| 13 | public static function create( | ||
| 14 | string $class, | ||
| 15 | string $association, | ||
| 16 | string $given, | ||
| 17 | string $expected, | ||
| 18 | ): self { | ||
| 19 | return new self(sprintf( | ||
| 20 | 'Found entity of type %s on association %s#%s, but expecting %s', | ||
| 21 | $given, | ||
| 22 | $class, | ||
| 23 | $association, | ||
| 24 | $expected, | ||
| 25 | )); | ||
| 26 | } | ||
| 27 | } | ||
diff --git a/vendor/doctrine/orm/src/Exception/UnrecognizedIdentifierFields.php b/vendor/doctrine/orm/src/Exception/UnrecognizedIdentifierFields.php deleted file mode 100644 index 645bdae..0000000 --- a/vendor/doctrine/orm/src/Exception/UnrecognizedIdentifierFields.php +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Exception; | ||
| 6 | |||
| 7 | use LogicException; | ||
| 8 | |||
| 9 | use function implode; | ||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | final class UnrecognizedIdentifierFields extends LogicException implements ManagerException | ||
| 13 | { | ||
| 14 | /** @param string[] $fieldNames */ | ||
| 15 | public static function fromClassAndFieldNames(string $className, array $fieldNames): self | ||
| 16 | { | ||
| 17 | return new self(sprintf( | ||
| 18 | 'Unrecognized identifier fields: "%s" are not present on class "%s".', | ||
| 19 | implode("', '", $fieldNames), | ||
| 20 | $className, | ||
| 21 | )); | ||
| 22 | } | ||
| 23 | } | ||
