DDC-2579: BasicEntityPersister - delete bug #3307

doctrinebot opened this Issue Jul 29, 2013 · 3 comments

1 participant


Jira issue originally created by user honzap:

I think, in BasicEntityPersister is bug in detecting types:

The $types array is not defined inside closure function. This makes problem with deleting entity with two and more primary keys which one of them references to another entity with reference too.
My relationship (example):
Email(userid, email) but FK (and @manyToOne relation) on userid field references to Person table/entity, not User. FK in Person entity references to User of course.
Trying delete the Email entity record throws exception based a few lines later.


Comment created by @FabioBatSilva:

Fixed : 7055ccb


Issue was closed with resolution "Fixed"


Comment created by honzap:

I agree with fix. I've done the same at my local repo and it works well. Thanks for confirmation.

@doctrinebot doctrinebot added this to the 2.3.5 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment