welcome back to dyb-tech
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\ORM\Persisters\Exception;
|
||||
|
||||
use Doctrine\ORM\Exception\PersisterException;
|
||||
|
||||
class CantUseInOperatorOnCompositeKeys extends PersisterException
|
||||
{
|
||||
public static function create(): self
|
||||
{
|
||||
return new self("Can't use IN operator on entities that have composite keys.");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\ORM\Persisters\Exception;
|
||||
|
||||
use Doctrine\ORM\Exception\PersisterException;
|
||||
|
||||
use function sprintf;
|
||||
|
||||
final class UnrecognizedField extends PersisterException
|
||||
{
|
||||
/** @deprecated Use {@see byFullyQualifiedName()} instead. */
|
||||
public static function byName(string $field): self
|
||||
{
|
||||
return new self(sprintf('Unrecognized field: %s', $field));
|
||||
}
|
||||
|
||||
/** @param class-string $className */
|
||||
public static function byFullyQualifiedName(string $className, string $field): self
|
||||
{
|
||||
return new self(sprintf('Unrecognized field: %s::$%s', $className, $field));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user