From b58f573b3151a492465dabd0de562353771aa899 Mon Sep 17 00:00:00 2001 From: Michel Weimerskirch Date: Tue, 26 Jul 2011 10:59:21 +0300 Subject: [PATCH 1/2] Corrected typo --- 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 75b91d2e4..fa6fdd30e 100644 --- a/lib/Doctrine/ORM/ORMException.php +++ b/lib/Doctrine/ORM/ORMException.php @@ -39,7 +39,7 @@ class ORMException extends Exception { return new self( "Entity of type " . get_class($entity) . " has identity through a foreign entity " . get_class($relatedEntity) . ", " . - "however this entity has no ientity itself. You have to call EntityManager#persist() on the related entity " . + "however this entity has no identity itself. You have to call EntityManager#persist() on the related entity " . "and make sure it 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 " . "EntityManager#flush() between both persist operations." From 6ef4ac62d773755d4655560a2348e8383d1cb553 Mon Sep 17 00:00:00 2001 From: Michel Weimerskirch Date: Tue, 26 Jul 2011 11:03:23 +0300 Subject: [PATCH 2/2] Missed another typo --- 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 fa6fdd30e..89203359c 100644 --- a/lib/Doctrine/ORM/ORMException.php +++ b/lib/Doctrine/ORM/ORMException.php @@ -40,7 +40,7 @@ class ORMException extends Exception return new self( "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 it an identifier was generated before trying to persist '" . get_class($entity) . "'. In case " . + "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 " . "EntityManager#flush() between both persist operations." );