summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Persisters/Exception/InvalidOrientation.php
blob: 7532800e0d25b1279021d80448c3608f4519c025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

declare(strict_types=1);

namespace Doctrine\ORM\Persisters\Exception;

use Doctrine\ORM\Exception\PersisterException;

class InvalidOrientation extends PersisterException
{
    public static function fromClassNameAndField(string $className, string $field): self
    {
        return new self('Invalid order by orientation specified for ' . $className . '#' . $field);
    }
}