From 27bae51fa03628d6634925265ff33531573cd518 Mon Sep 17 00:00:00 2001
From: Dustin Thomson <dthomson@51systems.com>
Date: Sun, 11 Aug 2013 19:41:10 -0600
Subject: [PATCH] Modified executeInserts method in JoinedSubclassPersister to
 only check for the presence of columns in a composite primary key

---
 lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php b/lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php
index 9300c36c3..684d30571 100644
--- a/lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php
+++ b/lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php
@@ -197,7 +197,7 @@ class JoinedSubclassPersister extends AbstractEntityInheritancePersister
                 }
 
                 foreach ($data as $columnName => $value) {
-                    if (!isset($id[$columnName])) {
+                    if (!is_array($id) || !isset($id[$columnName])) {
                         $stmt->bindValue($paramIndex++, $value, $this->columnTypes[$columnName]);
                     }
                 }