| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Mapping\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\DBAL\Platforms\AbstractPlatform; |
| 6 | use MailPoetVendor\Doctrine\ORM\Exception\ORMException; |
| 7 | use function get_debug_type; |
| 8 | use function sprintf; |
| 9 | final class CannotGenerateIds extends ORMException |
| 10 | { |
| 11 | public static function withPlatform(AbstractPlatform $platform) : self |
| 12 | { |
| 13 | return new self(sprintf('Platform %s does not support generating identifiers', get_debug_type($platform))); |
| 14 | } |
| 15 | } |
| 16 |