-
-
Save doctrinebot/27d016562e44fbc5fc6d to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-1843 - https://github.com/doctrine/doctrine2/issues/2503
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
--- a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
+++ b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
@@ -1098,7 +1098,7 @@ class BasicEntityPersister | |
$assoc = $this->_class->associationMappings[$name]; | |
if ($assoc['isOwningSide'] && $assoc['type'] & ClassMetadata::TO_ONE) { | |
foreach ($assoc['targetToSourceKeyColumns'] as $sourceCol) { | |
- $columns[] = $sourceCol; | |
+ $columns[] = $this->_class->getQuotedColumnName($sourceCol, $this->_platform); | |
} | |
} | |
} else if ($this->_class->generatorType != ClassMetadata::GENERATOR_TYPE_IDENTITY || |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment