scheduleForDirtyCheck() public method

Schedules a document for dirty-checking at commit-time.
public scheduleForDirtyCheck ( object $document )
$document object The document to schedule for dirty-checking.
 /**
  * Marks this collection as changed/dirty.
  */
 private function changed()
 {
     if ($this->isDirty) {
         return;
     }
     $this->isDirty = true;
     if ($this->needsSchedulingForDirtyCheck()) {
         $this->uow->scheduleForDirtyCheck($this->owner);
     }
 }
 /**
  * Marks this collection as changed/dirty.
  */
 private function changed()
 {
     if ($this->isDirty) {
         return;
     }
     $this->isDirty = true;
     if ($this->dm && $this->mapping !== null && $this->mapping['isOwningSide'] && $this->owner && $this->dm->getClassMetadata(get_class($this->owner))->isChangeTrackingNotify()) {
         $this->uow->scheduleForDirtyCheck($this->owner);
     }
 }