Пример #1
0
 public function testConfigHasExplicitForeignKeyIndex()
 {
     $schemaConfig = new \Doctrine\DBAL\Schema\SchemaConfig();
     $schemaConfig->setExplicitForeignKeyIndexes(false);
     $schema = new Schema(array(), array(), $schemaConfig);
     $this->assertFalse($schema->hasExplicitForeignKeyIndexes());
     $schemaConfig->setExplicitForeignKeyIndexes(true);
     $this->assertTrue($schema->hasExplicitForeignKeyIndexes());
 }