Removed FieldBuilder::unsigned() method as it is only supported by MySQL
This commit is contained in:
parent
553086ae3d
commit
352f5394e5
@ -167,18 +167,6 @@ class FieldBuilder
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets unsigned option.
|
||||
*
|
||||
* @param bool $flag
|
||||
*
|
||||
* @return FieldBuilder
|
||||
*/
|
||||
public function unsigned($flag = true)
|
||||
{
|
||||
return $this->option('unsigned', (bool)$flag);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $strategy
|
||||
*
|
||||
|
@ -176,7 +176,7 @@ class ClassMetadataBuilderTest extends \Doctrine\Tests\OrmTestCase
|
||||
|
||||
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']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user