| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Tools\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\ORM\Exception\ORMException; |
| 6 | use function sprintf; |
| 7 | final class MissingColumnException extends ORMException |
| 8 | { |
| 9 | public static function fromColumnSourceAndTarget(string $column, string $source, string $target) : self |
| 10 | { |
| 11 | return new self(sprintf('Column name "%s" referenced for relation from %s towards %s does not exist.', $column, $source, $target)); |
| 12 | } |
| 13 | } |
| 14 |