Bug #3819

Objects in SplObjectStorage are stored over and over again

Added by Karsten Dambekalns about 6 years ago. Updated about 4 years ago.

Status:Resolved Start date:2009-07-02
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:FLOW3 Persistence
Target version:-

Description

When an object inside an SplObjectStorage is stored (at least when using a reference), it will be stored again whenever the source property is dirty.

This doesn't cause problems on reading, as the object will be reconstituted only once and SplObjectStorage stores only distinct instances, but - it's a waste of space, exremely unclean and needs to be fixed.

Might apply to objects in arrays, too.

TYPO3CR_Problem_bei_BlogExample.pdf - Problem description about comments in Blog Example... (261.9 kB) Karsten Dambekalns, 2009-08-21 17:42

Associated revisions

Revision 0d99bcda
Added by Karsten Dambekalns almost 6 years ago

[+BUGFIX] TYPO3CR (FLOW3 Persistence): objects in a SplObjectStorage are now no longer stored again when their parent property is dirty, fixes #3819.

History

#1 Updated by Karsten Dambekalns almost 6 years ago

Another effect of this has been described by Robert, see attached PDF (german, sorry).

#2 Updated by Karsten Dambekalns almost 6 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3086.

#3 Updated by Robert Lemke about 4 years ago

  • Target version deleted (197)

Also available in: Atom PDF