Doctrine\ORM\UnitOfWork::isScheduledForDelete PHP 메소드

isScheduledForDelete() 공개 메소드

Checks whether an entity is registered as removed/deleted with the unit of work.
public isScheduledForDelete ( object $entity ) : boolean
$entity object
리턴 boolean
    public function isScheduledForDelete($entity)
    {
        return isset($this->entityDeletions[spl_object_hash($entity)]);
    }

Usage Example

예제 #1
0
 /**
  * @param B2bCustomer $b2bCustomer
  */
 protected function scheduleUpdate(B2bCustomer $b2bCustomer)
 {
     if ($this->uow->isScheduledForDelete($b2bCustomer)) {
         return;
     }
     $this->queued[$b2bCustomer->getId()] = $b2bCustomer;
 }
All Usage Examples Of Doctrine\ORM\UnitOfWork::isScheduledForDelete