diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index d3a9949f0..ba64abf44 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -50,7 +50,7 @@ class XmlDriver extends AbstractFileDriver if ($xmlRoot->getName() == 'entity') { $metadata->setCustomRepositoryClass( - isset($xmlRoot['repository-class']) ? $xmlRoot['repository-class'] : null + isset($xmlRoot['repository-class']) ? (string)$xmlRoot['repository-class'] : null ); } else if ($xmlRoot->getName() == 'mapped-superclass') { $metadata->isMappedSuperclass = true;