How to reset foreign key in doctrine 2 migration

I want to reset the foreign key in doctrine 2 migration. But there is no dropForeignKeyConstraint ()

Does anyone know how to remove it?

+4
source share
2 answers
public function down(Schema $schema) { $table = $schema->getTable('table_name'); $table->removeForeignKey('foreign_key_name'); } 
+4
source

Here he is:

 public function down() { $this->dropForeignKey('table_name', 'email_foreign_key'); } 

http://www.doctrine-project.org/projects/orm/1.2/docs/manual/migrations/en

-2
source

All Articles