Neos\Flow\Persistence\Generic\Session::getReconstitutedEntities PHP Method

getReconstitutedEntities() public method

Returns all objects which have been registered as reconstituted
public getReconstitutedEntities ( ) : SplObjectStorage
return SplObjectStorage All reconstituted objects
    public function getReconstitutedEntities()
    {
        return $this->reconstitutedEntities;
    }

Usage Example

 /**
  * @test
  */
 public function unregisterReconstitutedEntityRemovesObjectFromSession()
 {
     $someObject = new \ArrayObject([]);
     $session = new Persistence\Generic\Session();
     $session->registerObject($someObject, 'fakeUuid');
     $session->registerReconstitutedEntity($someObject, ['identifier' => 'fakeUuid']);
     $session->unregisterReconstitutedEntity($someObject);
     $ReconstitutedEntities = $session->getReconstitutedEntities();
     $this->assertFalse($ReconstitutedEntities->contains($someObject));
 }