1
0
mirror of synced 2024-12-12 22:36:02 +03:00

[2.0] DDC-277 - Remove support "default" option in metadata mappings, but keep it as a concept in DBAL layer to support for example versionable entities.

This commit is contained in:
beberlei 2010-01-26 21:46:10 +00:00
parent eebb7c7e18
commit 21de3d3ff2

View File

@ -35,7 +35,6 @@ class DatabaseDriverTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertEquals('id', $metadata->fieldMappings['id']['fieldName']); $this->assertEquals('id', $metadata->fieldMappings['id']['fieldName']);
$this->assertEquals('id', strtolower($metadata->fieldMappings['id']['columnName'])); $this->assertEquals('id', strtolower($metadata->fieldMappings['id']['columnName']));
$this->assertEquals('integer', (string)$metadata->fieldMappings['id']['type']); $this->assertEquals('integer', (string)$metadata->fieldMappings['id']['type']);
$this->assertEquals('', $metadata->fieldMappings['id']['default']);
$this->assertTrue($metadata->fieldMappings['id']['notnull']); $this->assertTrue($metadata->fieldMappings['id']['notnull']);
$this->assertArrayHasKey('bar', $metadata->fieldMappings); $this->assertArrayHasKey('bar', $metadata->fieldMappings);