public function isScheduledForSynchronization(object $document) : bool
    {
        $class = $this->dm->getClassMetadata(get_class($document));
        return isset($this->scheduledForSynchronization[$class->name][spl_object_hash($document)]);
    }