mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2109: Duplicate joinTableColumns mapping for ManyToMany with resolve target entity #2658
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 (Oct 31, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user bakura:
I use the resolve target entity listener quite often for generic code. However I found an issue with ManyToMany relationships, when the target entity is modified by the listener.
The problem is that the _validateAndCompleteManyToManyMapping in PersistentCollection duplicate the joinTableColumns, so this means that when creating an entity, Doctrine send twice the number of parameters, which of course fail.
Here is a test that reproduce the problem.
@doctrinebot commented on GitHub (Nov 12, 2012):
Issue was closed with resolution "Fixed"