Remove activities

@param \CampaignChain\CoreBundle\Entity\Activity $activities
348563
public function removeActivity(\CampaignChain\CoreBundle\Entity\Activity $activities)
    {
        $this->activities->removeElement($activities);
    }
451050
public function byActivity(Activity $activity): self
    {
        $this->filter['activity'] = $activity->getId()->getValue();

        return $this;
    }
725668
public function removeCampaign(\CampaignChain\CoreBundle\Entity\Campaign $campaigns)
    {
        $this->campaigns->removeElement($campaigns);
    }
1115769
public function remove($entity)
    {
        if ($this->evm->hasListeners(Events::preRemove)) {
            $this->evm->dispatchEvent(Events::preRemove, new Event\LifecycleEventArgs($entity, $this->sm));
        }

        $oid = spl_object_hash($entity);
        $this->scheduledForDelete[$oid] = $entity;

        if ($this->evm->hasListeners(Events::postRemove)) {
            $this->evm->dispatchEvent(Events::postRemove, new Event\LifecycleEventArgs($entity, $this->sm));
        }
    }
871542
public function remove($filePaths)
	{
		if ($filePaths) {
			$this->getS3Client()->deleteObjects(['Bucket' => $this->getBucket(), 'Objects' => $this->getKeys($filePaths)]);
		}
	}
894981
public function addActivity(\CampaignChain\CoreBundle\Entity\Activity $activities)
    {
        $this->activities[] = $activities;

        return $this;
    }
343221
public function clear($mission)
    {
        $missionGames = $this->findMissionGameByMission($mission);
        foreach ($missionGames as $missionGames) {
            $this->getMissionGameMapper()->remove($missionGames);
        }
    }
1137378
public function removeTranslation(\Haven\CoreBundle\Entity\CultureTranslation $translations) {
        $this->translations->removeElement($translations);
    }
741056
public function removeCampaignModule(\CampaignChain\CoreBundle\Entity\CampaignModule $campaignModules)
    {
        $this->campaignModules->removeElement($campaignModules);
    }
45780
public function removeChildren(\Coral\ContentBundle\Entity\Node $children)
    {
        $this->children->removeElement($children);
    }
601131
protected function removeEntity (...$entities) : void
    {
        try
        {
            $entities = \array_filter($entities);

            if (empty($entities))
            {
                return;
            }

            $entityManager = $this->getEntityManager();
            \array_map([$entityManager, "remove"], $entities);
            $entityManager->flush();
        }
        catch (ForeignKeyConstraintViolationException $foreignKeyException)
        {
            throw new EntityRemovalBlockedException(
                $entities,
                "Can't remove entities as a foreign key constraint failed.",
                $foreignKeyException
            );
        }
    }
331290
def delete_activities_for_entity_model(model)
      Activr.registry.activity_entities_for_model(model.class).each do |entity_name|
        self.driver.delete_activities(:entities => { entity_name => model.id })
      end
    end
1214999
public function remove(AbstractEntity $entity)
    {
        $this->getEntityManager()->remove($entity);
        $this->getEntityManager()->flush();
    }
993572
public function removePicture(\Dacorp\ExtraBundle\Entity\DacorpMedia $pictures)
    {
        $this->pictures->removeElement($pictures);
    }
417796
public function editActivity(Activity $activity)
    {
        $this->om->persist($activity);
        $this->om->flush();
        $this->initializePermissions($activity);

        return $activity;
    }
1047850
public function removeEntity($entity)
    {
        $registries = $this->findRegistriesEntityById(get_class($entity), $entity->getObjectIdentifier());

        foreach ($registries as $registry) {
            $this->remove($registry);
        }
    }
1305221
public function removeTranslation(\Haven\PersonaBundle\Entity\StateTranslation $translations)
    {
        $this->translations->removeElement($translations);
    }