Details
Description
I made a mistake when creating a @ManyToOne entity:
/**
- @ManyToOne(targetEntity="Entities\EntityA")
*/
private $test;
However, I was setting Entities\EntityB into $test.
Doctrine2 doesn't check for this, resulting in a hard-to-find issue.
Issue Links
- duplicates
-
DBAL-479
Doctrine2 schema-tool:update doesn't re-create foreign keys on entity change
-
Duplicated