Bug #9684

Datamapper fails to thaw reused objects if in certain order

Added by Robert Lemke almost 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Category:
Persistence
Start date:
2010-09-10
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Consider the following properties of an entity:

    /**
     * Paths of this workspace, indexed by nodes
     *
     * @var \SplObjectStorage
     */
    protected $nodesAndPaths;

    /**
     * Nodes of this workspace, indexed by their absolute path
     *
     * @var array<\F3\TYPO3CR\Domain\Model\Node>
     */
    protected $pathsAndNodes = array();

If I put a Node object into both containers at the same time, it works if the properties are defined in the above order but it does not if they are defined the other way around.

#1

Updated by Robert Lemke almost 11 years ago

  • Status changed from Accepted to Under Review
#2

Updated by Karsten Dambekalns almost 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF