diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index a65d4e1ab..21e97c153 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -260,15 +260,13 @@ class XmlDriver extends FileDriver : null; $useColumnPrefix = isset($embeddedMapping['use-column-prefix']) - ? $this->evaluateBoolean( - $embeddedMapping['use-column-prefix'] - ) + ? $this->evaluateBoolean($embeddedMapping['use-column-prefix']) : true; $mapping = array( 'fieldName' => (string) $embeddedMapping['name'], 'class' => (string) $embeddedMapping['class'], - 'columnPrefix' => !$useColumnPrefix ? false : $columnPrefix + 'columnPrefix' => $useColumnPrefix ? $columnPrefix : false ); $metadata->mapEmbedded($mapping);