Fix bug introduced in recent XmlDriver commit
This commit is contained in:
parent
14f20c16bc
commit
a0ee72f264
@ -225,7 +225,7 @@ class XmlDriver extends AbstractFileDriver
|
||||
'fieldName' => (string)$idElement['name']
|
||||
);
|
||||
|
||||
if (isset($fieldMapping['type'])) {
|
||||
if (isset($idElement['type'])) {
|
||||
$mapping['type'] = (string)$idElement['type'];
|
||||
}
|
||||
|
||||
|
@ -138,6 +138,7 @@ abstract class AbstractMappingDriverTest extends \Doctrine\Tests\OrmTestCase
|
||||
public function testIdentifier($class)
|
||||
{
|
||||
$this->assertEquals(array('id'), $class->identifier);
|
||||
$this->assertEquals('integer', $class->fieldMappings['id']['type']);
|
||||
$this->assertEquals(ClassMetadata::GENERATOR_TYPE_AUTO, $class->generatorType, "ID-Generator is not ClassMetadata::GENERATOR_TYPE_AUTO");
|
||||
|
||||
return $class;
|
||||
|
Loading…
x
Reference in New Issue
Block a user