public function isScheduledForDelete($entity) { return isset($this->entityDeletions[spl_object_hash($entity)]); }
/** * @param B2bCustomer $b2bCustomer */ protected function scheduleUpdate(B2bCustomer $b2bCustomer) { if ($this->uow->isScheduledForDelete($b2bCustomer)) { return; } $this->queued[$b2bCustomer->getId()] = $b2bCustomer; }