Doctrine\ORM\UnitOfWork::scheduleForDirtyCheck PHP Method

scheduleForDirtyCheck() public method

Schedules an entity for dirty-checking at commit-time.
public scheduleForDirtyCheck ( object $entity )
$entity object The entity to schedule for dirty-checking.
    public function scheduleForDirtyCheck($entity)
    {
        $rootClassName = $this->em->getClassMetadata(get_class($entity))->rootEntityName;
        $this->scheduledForDirtyCheck[$rootClassName][spl_object_hash($entity)] = $entity;
    }