1
0
mirror of synced 2025-01-09 18:47:10 +03:00

Merge pull request #1184 from goetas/patch-2

Postgres SERIAL is not a post-insert identifier generation strategy
This commit is contained in:
Marco Pivetta 2014-11-12 10:31:52 +01:00
commit e7be0c4dc9

View File

@ -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."
);
}