Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctrinebot/27d016562e44fbc5fc6d to your computer and use it in GitHub Desktop.
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
--- 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