vendor/doctrine/orm/src/Exception/NotSupported.php line 29

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\ORM\Exception;
  4. use function sprintf;
  5. final class NotSupported extends ORMException
  6. {
  7. public static function create(): self
  8. {
  9. return new self('This behaviour is (currently) not supported by Doctrine 2');
  10. }
  11. public static function createForDbal3(string $context): self
  12. {
  13. return new self(sprintf(
  14. <<<'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. ,
  20. $context
  21. ));
  22. }
  23. public static function createForPersistence3(string $context): self
  24. {
  25. return new self(sprintf(
  26. <<<'EXCEPTION'
  27. Context: %s
  28. Problem: Feature was deprecated in doctrine/persistence 2.x and is not supported by installed doctrine/persistence:3.x
  29. Solution: See the doctrine/deprecations logs for new alternative approaches.
  30. EXCEPTION
  31. ,
  32. $context
  33. ));
  34. }
  35. }