-
-
Save doctrinebot/2424b7a5c6b167c2fe37 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-762 - https://github.com/doctrine/doctrine2/issues/5276
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
index 93f6efa..931f019 100644 | |
--- a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
+++ b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
@@ -798,7 +798,7 @@ class BasicEntityPersister | |
$column = $this->_resultColumnNames[$column]; | |
if (isset($this->_class->fieldNames[$column])) { | |
$field = $this->_class->fieldNames[$column]; | |
- if (isset($data[$field])) { | |
+ if (array_key_exists($field, $data)) { | |
$data[$column] = $value; | |
} else { | |
$data[$field] = Type::getType($this->_class->fieldMappings[$field]['type']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment