public function scheduleForInsertion($entity)
    {
        $objectHashId                               = $this->entityRegistry->getObjectHashId($entity);
        $this->scheduledForInsertion[$objectHashId] = $entity;
        $this->entityRegistry->setState($entity, EntityStates::QUEUED);
    }
public function scheduleForInsertion($entity)
    {
        $objectHashId                               = $this->entityRegistry->getObjectHashId($entity);
        $this->scheduledForInsertion[$objectHashId] = $entity;
        $this->entityRegistry->setState($entity, EntityStates::QUEUED);
    }
public function scheduleForInsertion ( $ entity ) { $ objectHashId = $ this -> entityRegistry -> getObjectHashId ( $ entity ) ; $ this -> scheduledForInsertion [ $ objectHashId ] = $ entity ; $ this -> entityRegistry -> setState ( $ entity , EntityStates :: QUEUED ) ; }
Schedules an entity for insertion

@param   object $entity The entity to schedule for insertion

@return  void
Schedules an entity for insertion