mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1585: Doctrine2 doesn't check for the correct entity type on @ManyToOne relations #1986
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 7, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user felicitus:
I made a mistake when creating a @ManyToOne entity:
/****
*/
private $test;
However, I was setting Entities\EntityB into $test.
Doctrine2 doesn't check for this, resulting in a hard-to-find issue.
@doctrinebot commented on GitHub (Jan 7, 2012):
@doctrinebot commented on GitHub (Jan 13, 2012):
Comment created by @guilhermeblanco:
Duplicated
@doctrinebot commented on GitHub (Jan 15, 2012):
Comment created by @beberlei:
This is not a duplicate, its a runtime issue in the code when setting the wrong target entity type.
@doctrinebot commented on GitHub (Jan 15, 2012):
Comment created by @beberlei:
Implemented an instanceof check.
@doctrinebot commented on GitHub (Jan 15, 2012):
Issue was closed with resolution "Fixed"