public function scheduleExtraUpdate($entity, array $changeset) { $oid = spl_object_hash($entity); if (isset($this->extraUpdates[$oid])) { list($ignored, $changeset2) = $this->extraUpdates[$oid]; $this->extraUpdates[$oid] = array($entity, $changeset + $changeset2); } else { $this->extraUpdates[$oid] = array($entity, $changeset); } }
/** * Updates modification date for a source. * * @param SourceInterface $source * @param UnitOfWork $uow */ protected function setSourceModificationDate(SourceInterface $source, UnitOfWork $uow) { $uow->scheduleExtraUpdate($source, ['datetimeModified' => [0 => $source->getDatetimeModified(), 1 => new \DateTime()]]); }