ConfigurationException.php
9 months ago
EntityIdentityCollisionException.php
9 months ago
EntityManagerClosed.php
9 months ago
EntityMissingAssignedId.php
9 months ago
InvalidEntityRepository.php
9 months ago
InvalidHydrationMode.php
9 months ago
ManagerException.php
9 months ago
MismatchedEventManager.php
9 months ago
MissingIdentifierField.php
9 months ago
MissingMappingDriverImplementation.php
9 months ago
MultipleSelectorsFoundException.php
9 months ago
NamedNativeQueryNotFound.php
9 months ago
NamedQueryNotFound.php
9 months ago
NotSupported.php
9 months ago
ORMException.php
9 months ago
PersisterException.php
9 months ago
ProxyClassesAlwaysRegenerating.php
9 months ago
RepositoryException.php
9 months ago
SchemaToolException.php
9 months ago
UnexpectedAssociationValue.php
9 months ago
UnknownEntityNamespace.php
9 months ago
UnrecognizedIdentifierFields.php
9 months ago
index.php
9 months ago
EntityMissingAssignedId.php
13 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use function get_debug_type; |
| 6 | final class EntityMissingAssignedId extends ORMException |
| 7 | { |
| 8 | public static function forField($entity, string $field) : self |
| 9 | { |
| 10 | return new self('Entity of type ' . get_debug_type($entity) . " is missing an assigned ID for field '" . $field . "'. " . 'The identifier generation strategy for this entity requires the ID field to be populated before ' . 'EntityManager#persist() is called. If you want automatically generated identifiers instead ' . 'you need to adjust the metadata mapping accordingly.'); |
| 11 | } |
| 12 | } |
| 13 |