I often change/add some field in Entity and using bin/console make:migration
to generate migrations, that's convenience just like in Rails or Django. But I do not need Foreign Key Constraint when I am using Doctrine Relationships(ManyToOne
, OneToMany
...).
I have to delete lines contained Foreign Key Constraint in generated migrations. But When I doing some changes with Entity, and run bin/console make:migration
, It will add Foreign Key Constraint again, it is annoying.
I do not care about data consistency.
In Django model ForeignKey you can set db_constraint=False
, so migration would not generate Foreign Key constraint.
Is there some similar setting in Doctrine?