Doctrine\ORM\UnitOfWork::getIdentityMap PHP Method

getIdentityMap() public method

Gets the identity map of the UnitOfWork.
public getIdentityMap ( ) : array
return array
    public function getIdentityMap()
    {
        return $this->identityMap;
    }

Usage Example

 function it_clears_the_import_cache(DoctrineCache $doctrineCache, EntityManager $entityManager, UnitOfWork $uow)
 {
     $this->setNonClearableEntities(['NonClearable']);
     $uow->getIdentityMap()->willReturn(['NonClearable' => [], 'Clearable' => []]);
     $entityManager->clear('Clearable')->shouldBeCalled();
     $doctrineCache->clear(['NonClearable'])->shouldBeCalled();
     $this->clear();
 }
All Usage Examples Of Doctrine\ORM\UnitOfWork::getIdentityMap