[DBAL-132] wrong mysql dump generation for foreign keys Created: 22/Jun/11 Updated: 31/Jul/11 Resolved: 31/Jul/11
|Fix Version/s:||2.0.7, 2.1.1|
|Reporter:||Stefan Zerkalica||Assignee:||Benjamin Eberlei|
PHP 5.3.3-7+squeeze1 with Suhosin-Patch, Debian GNU/Linux 6.0.1 (squeeze)
Problem in methods Doctrine\DBAL\Platforms\AbstractPlatform::getDropForeignKeySQL() and Doctrine\DBAL\Platforms\AbstractPlatform::getCreateForeignKeySQL()
This methods do not receive FK name and don't put it in sql dump. While executing dump, mysql autogenerate FK names, but at the migration generation moment doctrine knowns nothing about them.
I think, doctrine must generate this names and put it into the schema.
Autogenerated migrations in mysql with fk are unusable.
Doctrine migrations:migrate in current doctrine version:
|Comment by Benjamin Eberlei [ 31/Jul/11 ]|