From a5b7069fd7763ef46e4de52afcd09c7718de7c14 Mon Sep 17 00:00:00 2001 From: Pouyan Savoli Date: Sun, 15 Dec 2013 23:31:35 +0100 Subject: [PATCH] [DDC-2645] Apply patch to fix issue --- lib/Doctrine/ORM/UnitOfWork.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index d00a87af7..ecc2268e7 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -1735,6 +1735,8 @@ class UnitOfWork implements PropertyChangedListener $associatedId = $this->getEntityIdentifier($idValue); $flatId[$idField] = $associatedId[$targetClassMetadata->identifier[0]]; + } else { + $flatId[$idField] = $idValue; } }