diff --git a/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php b/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php index 9df12fc1c..a4d4c6477 100644 --- a/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php +++ b/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php @@ -755,7 +755,7 @@ abstract class AbstractSchemaManager } $tables = $this->listTables(); - return new Schema($tables, $sequences, array(), array(), $this->createSchemaConfig()); + return new Schema($tables, $sequences, $this->createSchemaConfig()); } /** diff --git a/lib/Doctrine/DBAL/Schema/Schema.php b/lib/Doctrine/DBAL/Schema/Schema.php index 96a70552b..89243f817 100644 --- a/lib/Doctrine/DBAL/Schema/Schema.php +++ b/lib/Doctrine/DBAL/Schema/Schema.php @@ -58,7 +58,7 @@ class Schema extends AbstractAsset * @param array $triggers * @param SchemaConfig $schemaConfig */ - public function __construct(array $tables=array(), array $sequences=array(), array $views = array(), array $triggers = array(), SchemaConfig $schemaConfig=null) + public function __construct(array $tables=array(), array $sequences=array(), SchemaConfig $schemaConfig=null) { if ($schemaConfig == null) { $schemaConfig = new SchemaConfig(); diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index 87188c0af..ef4375253 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -114,7 +114,7 @@ class SchemaTool $metadataSchemaConfig->setMaxIdentifierLength(63); $sm = $this->_em->getConnection()->getSchemaManager(); - $schema = new \Doctrine\DBAL\Schema\Schema(array(), array(), array(), array(), $metadataSchemaConfig); + $schema = new \Doctrine\DBAL\Schema\Schema(array(), array(), $metadataSchemaConfig); foreach ($classes as $class) { if (isset($processedClasses[$class->name]) || $class->isMappedSuperclass) { diff --git a/tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php b/tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php index 8349ce520..55461f078 100644 --- a/tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php +++ b/tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php @@ -91,8 +91,8 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase $table = new Table('bugdb', array ('integerfield1' => new Column('integerfield1', Type::getType('integer')))); $table->setSchemaConfig($schemaConfig); - $schema1 = new Schema( array($table), array(), array(), array(), $schemaConfig ); - $schema2 = new Schema( array(), array(), array(), array(), $schemaConfig ); + $schema1 = new Schema( array($table), array(), $schemaConfig ); + $schema2 = new Schema( array(), array(), $schemaConfig ); $expected = new SchemaDiff( array(), array(), array('bugdb' => $table) ); @@ -105,8 +105,8 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase $table = new Table('bugdb', array ('integerfield1' => new Column('integerfield1', Type::getType('integer')))); $table->setSchemaConfig($schemaConfig); - $schema1 = new Schema( array(), array(), array(), array(), $schemaConfig ); - $schema2 = new Schema( array($table), array(), array(), array(), $schemaConfig ); + $schema1 = new Schema( array(), array(), $schemaConfig ); + $schema2 = new Schema( array($table), array(), $schemaConfig ); $expected = new SchemaDiff( array('bugdb' => $table), array(), array() ); $this->assertEquals($expected, Comparator::compareSchemas( $schema1, $schema2 ) ); diff --git a/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php b/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php index fdf7a90cb..f0eee0d03 100644 --- a/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php +++ b/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php @@ -193,7 +193,7 @@ class SchemaTest extends \PHPUnit_Framework_TestCase $schemaConfig = new \Doctrine\DBAL\Schema\SchemaConfig(); $schemaConfig->setExplicitForeignKeyIndexes(false); - $schema = new Schema(array(), array(), array(), array(), $schemaConfig); + $schema = new Schema(array(), array(), $schemaConfig); $this->assertFalse($schema->hasExplicitForeignKeyIndexes()); $schemaConfig->setExplicitForeignKeyIndexes(true); @@ -205,7 +205,7 @@ class SchemaTest extends \PHPUnit_Framework_TestCase $schemaConfig = new \Doctrine\DBAL\Schema\SchemaConfig(); $schemaConfig->setMaxIdentifierLength(10); - $schema = new Schema(array(), array(), array(), array(), $schemaConfig); + $schema = new Schema(array(), array(), $schemaConfig); $table = $schema->createTable("smalltable"); $table->addColumn('long_id', 'integer'); $table->addIndex(array('long_id'));