Bug #37507

Doctrine Collection add existing

Added by Carsten Bleicker about 3 years ago. Updated about 3 years ago.

Status:Closed Start date:2012-05-26
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

0%

Category:Persistence
Target version:-
PHP Version: Complexity:
Has patch:No Affected Flow version:FLOW3 1.1.0 beta 1

Description

If you build up a nested form to UPDATE the party by a given subproperty input
<f:form.textfield property="primaryElectronicAddress.identifier" />
this will results in a doctrine exception:

#23000: SQLSTATE23000: Integrity constraint violation: 1062 Duplicate entry '54513027-6fce-4e4b-972a-8cd394d3ef87-e8dcf75e-b057-4f65-be8c-767' for key 'PRIMARY'

in my humble opinion either the doctrine array collection should check for allready existing and dont add a new index.
instead of a new it should use the old index. otherwise i have 2 indexes with the same uuid.


Related issues

related to TYPO3.Party - Bug #29484: Adding a primaryElectronicAddress to a person throws an d... Resolved 2011-09-05
related to TYPO3.Party - Bug #37628: Duplicate entries exception for electronicAddresses by ad... Resolved 2012-05-31

History

#1 Updated by Karsten Dambekalns about 3 years ago

  • Status changed from New to Closed
  • Assigned To set to Karsten Dambekalns

Closing as duplicate of #37628. And this is not something that can be solved the Doctrine collections, as they are also used for non-unique collections.

Also available in: Atom PDF