diff --git a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php index 40b7f09d9..a80f8bc9a 100644 --- a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php +++ b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php @@ -1696,6 +1696,7 @@ class BasicEntityPersister } $key = key($idValues); + if (null !== $key){ $value = $idValues[$key]; }