Details
Description
Lets say, I have entity Forum with ManyToMany relations with User.
I need to validate user changes and I use code like
$uow = $this->getDoctrine()>getEntityManager()>getUnitOfWork();
$uow->computeChangeSets();
$changeSet = $uow->getEntityChangeSet($forum);
if (.... bla-bla-bla....)
Unfortunately, whenever I try to change manyToMany relations - I got error
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-4' for key 'PRIMARY'
If I comment uow code - everything works just great.
It looks like bug in UnitOfWork implementation.
Let me know if you need more details from me.
Activity
Marco Pivetta
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Benjamin Eberlei [ beberlei ] | Marco Pivetta [ ocramius ] |
Marco Pivetta
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 2.x [ 10090 ] | |
| Resolution | Duplicate [ 3 ] |
Marco Pivetta
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Benjamin Eberlei
made changes -
| Resolution | Duplicate [ 3 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
Benjamin Eberlei
made changes -
| Fix Version/s | 2.3 [ 10185 ] | |
| Fix Version/s | 2.1.7 [ 10198 ] | |
| Fix Version/s | 2.x [ 10090 ] |
Benjamin Eberlei
made changes -
| Fix Version/s | 2.1.8 [ 10220 ] | |
| Fix Version/s | 2.1.7 [ 10198 ] |
Benjamin Eberlei
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1925, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
What is the part you commented out? Also, in what context is your code executed?