1
0
mirror of synced 2025-02-06 15:29:26 +03:00

Removed FieldBuilder::unsigned() method as it is only supported by MySQL

This commit is contained in:
Adam Pancutt 2014-01-03 09:48:38 +00:00
parent 553086ae3d
commit 352f5394e5
2 changed files with 1 additions and 13 deletions

View File

@ -167,18 +167,6 @@ class FieldBuilder
return $this; return $this;
} }
/**
* Sets unsigned option.
*
* @param bool $flag
*
* @return FieldBuilder
*/
public function unsigned($flag = true)
{
return $this->option('unsigned', (bool)$flag);
}
/** /**
* @param string $strategy * @param string $strategy
* *

View File

@ -176,7 +176,7 @@ class ClassMetadataBuilderTest extends \Doctrine\Tests\OrmTestCase
public function testCreateUnsignedOptionField() public function testCreateUnsignedOptionField()
{ {
$this->builder->createField('state', 'integer')->unsigned()->build(); $this->builder->createField('state', 'integer')->option('unsigned', true)->build();
$this->assertEquals(array('fieldName' => 'state', 'type' => 'integer', 'options' => array('unsigned' => true), 'columnName' => 'state'), $this->cm->fieldMappings['state']); $this->assertEquals(array('fieldName' => 'state', 'type' => 'integer', 'options' => array('unsigned' => true), 'columnName' => 'state'), $this->cm->fieldMappings['state']);
} }