From a1660997ffd342e2d18dab92a3676abd9668f20d Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Wed, 12 Nov 2014 10:10:06 +0100 Subject: [PATCH] Postgres SERIAL is not a post-insert identifier generation strategy --- lib/Doctrine/ORM/ORMException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/ORMException.php b/lib/Doctrine/ORM/ORMException.php index cbbada57d..2b4552932 100644 --- a/lib/Doctrine/ORM/ORMException.php +++ b/lib/Doctrine/ORM/ORMException.php @@ -71,7 +71,7 @@ class ORMException extends Exception "Entity of type " . get_class($entity) . " has identity through a foreign entity " . get_class($relatedEntity) . ", " . "however this entity has no identity itself. You have to call EntityManager#persist() on the related entity " . "and make sure that an identifier was generated before trying to persist '" . get_class($entity) . "'. In case " . - "of Post Insert ID Generation (such as MySQL Auto-Increment or PostgreSQL SERIAL) this means you have to call " . + "of Post Insert ID Generation (such as MySQL Auto-Increment) this means you have to call " . "EntityManager#flush() between both persist operations." ); }