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/Repository/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/Repository/Exception')
| -rw-r--r-- | vendor/doctrine/orm/src/Repository/Exception/InvalidFindByCall.php | 21 | ||||
| -rw-r--r-- | vendor/doctrine/orm/src/Repository/Exception/InvalidMagicMethodCall.php | 27 |
2 files changed, 0 insertions, 48 deletions
diff --git a/vendor/doctrine/orm/src/Repository/Exception/InvalidFindByCall.php b/vendor/doctrine/orm/src/Repository/Exception/InvalidFindByCall.php deleted file mode 100644 index c5dd015..0000000 --- a/vendor/doctrine/orm/src/Repository/Exception/InvalidFindByCall.php +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Repository\Exception; | ||
| 6 | |||
| 7 | use Doctrine\ORM\Exception\RepositoryException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | final class InvalidFindByCall extends LogicException implements RepositoryException | ||
| 11 | { | ||
| 12 | public static function fromInverseSideUsage( | ||
| 13 | string $entityName, | ||
| 14 | string $associationFieldName, | ||
| 15 | ): self { | ||
| 16 | return new self( | ||
| 17 | "You cannot search for the association field '" . $entityName . '#' . $associationFieldName . "', " . | ||
| 18 | 'because it is the inverse side of an association. Find methods only work on owning side associations.', | ||
| 19 | ); | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/vendor/doctrine/orm/src/Repository/Exception/InvalidMagicMethodCall.php b/vendor/doctrine/orm/src/Repository/Exception/InvalidMagicMethodCall.php deleted file mode 100644 index 1da49cb..0000000 --- a/vendor/doctrine/orm/src/Repository/Exception/InvalidMagicMethodCall.php +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Repository\Exception; | ||
| 6 | |||
| 7 | use Doctrine\ORM\Exception\RepositoryException; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | final class InvalidMagicMethodCall extends LogicException implements RepositoryException | ||
| 11 | { | ||
| 12 | public static function becauseFieldNotFoundIn( | ||
| 13 | string $entityName, | ||
| 14 | string $fieldName, | ||
| 15 | string $method, | ||
| 16 | ): self { | ||
| 17 | return new self( | ||
| 18 | "Entity '" . $entityName . "' has no field '" . $fieldName . "'. " . | ||
| 19 | "You can therefore not call '" . $method . "' on the entities' repository.", | ||
| 20 | ); | ||
| 21 | } | ||
| 22 | |||
| 23 | public static function onMissingParameter(string $methodName): self | ||
| 24 | { | ||
| 25 | return new self("You need to pass a parameter to '" . $methodName . "'"); | ||
| 26 | } | ||
| 27 | } | ||
