ConfigurationException.php
9 months ago
EntityIdentityCollisionException.php
9 months ago
EntityManagerClosed.php
9 months ago
EntityMissingAssignedId.php
9 months ago
InvalidEntityRepository.php
9 months ago
InvalidHydrationMode.php
9 months ago
ManagerException.php
9 months ago
MismatchedEventManager.php
9 months ago
MissingIdentifierField.php
9 months ago
MissingMappingDriverImplementation.php
9 months ago
MultipleSelectorsFoundException.php
9 months ago
NamedNativeQueryNotFound.php
9 months ago
NamedQueryNotFound.php
9 months ago
NotSupported.php
9 months ago
ORMException.php
9 months ago
PersisterException.php
9 months ago
ProxyClassesAlwaysRegenerating.php
9 months ago
RepositoryException.php
9 months ago
SchemaToolException.php
9 months ago
UnexpectedAssociationValue.php
9 months ago
UnknownEntityNamespace.php
9 months ago
UnrecognizedIdentifierFields.php
9 months ago
index.php
9 months ago
NotSupported.php
31 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use function sprintf; |
| 6 | final class NotSupported extends ORMException |
| 7 | { |
| 8 | public static function create() : self |
| 9 | { |
| 10 | return new self('This behaviour is (currently) not supported by Doctrine 2'); |
| 11 | } |
| 12 | public static function createForDbal3(string $context) : self |
| 13 | { |
| 14 | return new self(sprintf(<<<'EXCEPTION' |
| 15 | Context: %s |
| 16 | Problem: Feature was deprecated in doctrine/dbal 2.x and is not supported by installed doctrine/dbal:3.x |
| 17 | Solution: See the doctrine/deprecations logs for new alternative approaches. |
| 18 | EXCEPTION |
| 19 | , $context)); |
| 20 | } |
| 21 | public static function createForPersistence3(string $context) : self |
| 22 | { |
| 23 | return new self(sprintf(<<<'EXCEPTION' |
| 24 | Context: %s |
| 25 | Problem: Feature was deprecated in doctrine/persistence 2.x and is not supported by installed doctrine/persistence:3.x |
| 26 | Solution: See the doctrine/deprecations logs for new alternative approaches. |
| 27 | EXCEPTION |
| 28 | , $context)); |
| 29 | } |
| 30 | } |
| 31 |