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/Internal/Hydration/HydrationException.php | |
| 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/Internal/Hydration/HydrationException.php')
| -rw-r--r-- | vendor/doctrine/orm/src/Internal/Hydration/HydrationException.php | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/vendor/doctrine/orm/src/Internal/Hydration/HydrationException.php b/vendor/doctrine/orm/src/Internal/Hydration/HydrationException.php deleted file mode 100644 index 710114f..0000000 --- a/vendor/doctrine/orm/src/Internal/Hydration/HydrationException.php +++ /dev/null | |||
| @@ -1,67 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Internal\Hydration; | ||
| 6 | |||
| 7 | use Doctrine\ORM\Exception\ORMException; | ||
| 8 | use Exception; | ||
| 9 | |||
| 10 | use function implode; | ||
| 11 | use function sprintf; | ||
| 12 | |||
| 13 | class HydrationException extends Exception implements ORMException | ||
| 14 | { | ||
| 15 | public static function nonUniqueResult(): self | ||
| 16 | { | ||
| 17 | return new self('The result returned by the query was not unique.'); | ||
| 18 | } | ||
| 19 | |||
| 20 | public static function parentObjectOfRelationNotFound(string $alias, string $parentAlias): self | ||
| 21 | { | ||
| 22 | return new self(sprintf( | ||
| 23 | "The parent object of entity result with alias '%s' was not found." | ||
| 24 | . " The parent alias is '%s'.", | ||
| 25 | $alias, | ||
| 26 | $parentAlias, | ||
| 27 | )); | ||
| 28 | } | ||
| 29 | |||
| 30 | public static function emptyDiscriminatorValue(string $dqlAlias): self | ||
| 31 | { | ||
| 32 | return new self("The DQL alias '" . $dqlAlias . "' contains an entity " . | ||
| 33 | 'of an inheritance hierarchy with an empty discriminator value. This means ' . | ||
| 34 | 'that the database contains inconsistent data with an empty ' . | ||
| 35 | 'discriminator value in a table row.'); | ||
| 36 | } | ||
| 37 | |||
| 38 | public static function missingDiscriminatorColumn(string $entityName, string $discrColumnName, string $dqlAlias): self | ||
| 39 | { | ||
| 40 | return new self(sprintf( | ||
| 41 | 'The discriminator column "%s" is missing for "%s" using the DQL alias "%s".', | ||
| 42 | $discrColumnName, | ||
| 43 | $entityName, | ||
| 44 | $dqlAlias, | ||
| 45 | )); | ||
| 46 | } | ||
| 47 | |||
| 48 | public static function missingDiscriminatorMetaMappingColumn(string $entityName, string $discrColumnName, string $dqlAlias): self | ||
| 49 | { | ||
| 50 | return new self(sprintf( | ||
| 51 | 'The meta mapping for the discriminator column "%s" is missing for "%s" using the DQL alias "%s".', | ||
| 52 | $discrColumnName, | ||
| 53 | $entityName, | ||
| 54 | $dqlAlias, | ||
| 55 | )); | ||
| 56 | } | ||
| 57 | |||
| 58 | /** @param list<int|string> $discrValues */ | ||
| 59 | public static function invalidDiscriminatorValue(string $discrValue, array $discrValues): self | ||
| 60 | { | ||
| 61 | return new self(sprintf( | ||
| 62 | 'The discriminator value "%s" is invalid. It must be one of "%s".', | ||
| 63 | $discrValue, | ||
| 64 | implode('", "', $discrValues), | ||
| 65 | )); | ||
| 66 | } | ||
| 67 | } | ||
