From b90943c56b2ee06e14aaea542e6d1d199d0c4b27 Mon Sep 17 00:00:00 2001 From: Andrey Knupp Vital Date: Thu, 8 Jan 2015 09:04:37 -0200 Subject: [PATCH] Minor improvements --- lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);