src/Camunda/Fixture/Camunda/Tenant.php
public function load(ObjectManager $manager)
    {
        $api = $this->container->get(Api::class)->get('workflow.tenant');
        $parameters = new TenantParameters;
        $tenants = $api->getList($parameters);

        foreach ($tenants as $tenant) {
            $parameters = new TenantParameters;
            $api->delete($tenant->getId(), $parameters);
        }

        $objects = $this->parse($this->path);

        foreach ($objects as $object) {
            $tenant = new TenantModel;
            $tenant->setName($object->name);
            $api->create($tenant);
        }
    }
public function load(ObjectManager $manager)
    {
        $api = $this->container->get(Api::class)->get('workflow.tenant');
        $parameters = new TenantParameters;
        $tenants = $api->getList($parameters);

        foreach ($tenants as $tenant) {
            $parameters = new TenantParameters;
            $api->delete($tenant->getId(), $parameters);
        }

        $objects = $this->parse($this->path);

        foreach ($objects as $object) {
            $tenant = new TenantModel;
            $tenant->setName($object->name);
            $api->create($tenant);
        }
    }
{@inheritdoc}