Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.5
-
Fix Version/s: 2.3
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
I have changed a @ManyToOne relation to another entity. My workflow was this:
- Having @ManyToOne(targetEntity="Entity\EntityA") in the source
- Creating the database schema
- Changing @ManyToOne(targetEntity="Entity\EntityA") to @ManyToOne(targetEntity="Entity\EntityB")
- Calling doctrine orm:schema-tool:update
orm:schema-tool:update doesn't notice that and doesn't re-create the FK on MySQL and PostgreSQL (haven't tested others).
Issue Links
- is duplicated by
-
DDC-1585
Doctrine2 doesn't check for the correct entity type on @ManyToOne relations
-
Does this use the same variable or does the many to one variable name change?