Doctrine\ODM\MongoDB\UnitOfWork::hasPendingInsertions PHP Method

hasPendingInsertions() public method

Checks whether the UnitOfWork has any pending insertions.
public hasPendingInsertions ( ) : boolean
return boolean TRUE if this UnitOfWork has pending insertions, FALSE otherwise.
    public function hasPendingInsertions()
    {
        return !empty($this->documentInsertions);
    }
UnitOfWork