Doctrine\ORM\UnitOfWork::size PHP Method

size() public method

Calculates the size of the UnitOfWork. The size of the UnitOfWork is the number of entities in the identity map.
public size ( ) : integer
return integer
    public function size()
    {
        $count = 0;
        foreach ($this->identityMap as $entitySet) {
            $count += count($entitySet);
        }
        return $count;
    }