Sets the FunctionPhaseRoot id

@param mixed $id
@param mixed $relatedId
@return PayloadInterface
196466
public function setFunctionPhaseRootId($id, $relatedId) {
		// find
		$model = $this->get($id);

		if ($model === null) {
			return new NotFound(['message' => 'Skill not found.']);
		}

		// update
		if ($this->doSetFunctionPhaseRootId($model, $relatedId)) {
			$this->dispatch(SkillEvent::PRE_FUNCTION_PHASE_ROOT_UPDATE, $model);
			$this->dispatch(SkillEvent::PRE_SAVE, $model);
			$model->save();
			$this->dispatch(SkillEvent::POST_FUNCTION_PHASE_ROOT_UPDATE, $model);
			$this->dispatch(SkillEvent::POST_SAVE, $model);

			return Updated(['model' => $model]);
		}

		return NotUpdated(['model' => $model]);
	}
270637
public function setObjectId($id, $relatedId) {
		// find
		$model = $this->get($id);

		if ($model === null) {
			return new NotFound(['message' => 'Skill not found.']);
		}

		// update
		if ($this->doSetObjectId($model, $relatedId)) {
			$this->dispatch(SkillEvent::PRE_OBJECT_UPDATE, $model);
			$this->dispatch(SkillEvent::PRE_SAVE, $model);
			$model->save();
			$this->dispatch(SkillEvent::POST_OBJECT_UPDATE, $model);
			$this->dispatch(SkillEvent::POST_SAVE, $model);

			return Updated(['model' => $model]);
		}

		return NotUpdated(['model' => $model]);
	}
944280
public function attach($container_id, $relation_id, Request $request)
    {
        $container = $this->getManager()->getRepository()->findOneBy(['id' => $container_id]);

        if (!$container) {
            return $this->not_found();
        }

        $resource = $this->getRelationManager($container)->getRepository()->findOneBy(['id' => $relation_id]);

        if (!$resource) {
            return $this->not_found();
        }

        $relationName = $this->getRelationName($container);

        if (!$container->$relationName->contains($resource)) {
            $container->$relationName()->attach($resource);
        }

        return $this->success(['message' => 'ok']);
    }
724298
public function setRelation($contentType, $id)
    {
        if (empty($this->relation[$contentType]) || !in_array($id, $this->relation[$contentType], false)) {
            $this->relation[$contentType][] = $id;
        }
    }
957
public function setId($id)
    {

        if (!is_null($id) && (!preg_match("/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/", $id))) {
            throw new \InvalidArgumentException("invalid value for $id when calling StackService., must conform to the pattern /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.");
        }

        $this->container['id'] = $id;

        return $this;
    }
352652
final public function alias(string $id, string $referencedId): AliasConfigurator
    {
        $this->__destruct();

        return $this->parent->alias($id, $referencedId);
    }
1346772
public function setRelatedId( $id )
	{
		if ( $id === $this->getRelatedId() ) { return; }
		$id = (int) $id;
		$this->_values['relatedid'] = $id;
		$this->setModified();
	}
354610
public function setFeaturedSkillId($id, $relatedId) {
		// find
		$model = $this->get($id);

		if ($model === null) {
			return new NotFound(['message' => 'Picture not found.']);
		}

		// update
		if ($this->doSetFeaturedSkillId($model, $relatedId)) {
			$this->dispatch(PictureEvent::PRE_FEATURED_SKILL_UPDATE, $model);
			$this->dispatch(PictureEvent::PRE_SAVE, $model);
			$model->save();
			$this->dispatch(PictureEvent::POST_FEATURED_SKILL_UPDATE, $model);
			$this->dispatch(PictureEvent::POST_SAVE, $model);

			return Updated(['model' => $model]);
		}

		return NotUpdated(['model' => $model]);
	}
840406
public function setId($id)
  {
    if ($this->isLocked()) {
      return $this->getObj()->setId($id)->setLocked();
    } else {
      return parent::setId($id);
    }
  }
757895
public function setId($id)
    {
       	if ($id !== null && is_numeric($id)) {
            $id = (int) $id;
        }
        $this->id = $id;

        return $this;
    }
508790
public function setDatatableId($id)
    {
        if (!array_key_exists($id, self::$instances)) {
            self::$instances[$id] = $this;
        } else {
            throw new \Exception('Identifer already exists');
        }

        return $this;
    }
646463
public function relatedItem($resourceModel, $relatedId, RelatedRepository $repository)
    {
        if ($repository instanceof JsonApiRepository) {
            $this->applyFilters($this->filters, $this->filterFactory, $repository);
        }

        return $repository->findRelated($resourceModel, $relatedId);
    }
951417
public function setServiceId( $id )
	{
		if ( $id == $this->getServiceId() ) { return; }

		$this->_values['ordservid'] = (int) $id;
		$this->setModified();
	}
41637
public function setId($id)
    {
        if (is_integer($id) || is_float($id)) {
            $this->id = $id;
        } else {
            throw new InvalidArgumentException();
        }
    }
691025
public function setId(int $id): Email
    {
        Assert::greaterThan($id, 0);

        $this->id = $id;

        return $this;
    }
668096
public function setId($id)
    {
        if (!$this->setHeaderFieldModel($this->getIdField(), $id)) {
            $this->headers->addIdHeader($this->getIdField(), $id);
        }
        $this->id = $id;

        return $this;
    }
1181324
function put($id, $payload)
    {
        $this->requestDecorator->setId($id);
        $this->requestDecorator->setPayload($payload);
        if ((is_array($payload)) && (!empty($payload['sys']['version']))) {
            $this->requestDecorator->addHeader('X-Contentful-Version', $payload['sys']['version']);
        }
        $result = $this->client->put($this->requestDecorator->makeResource(), $this->requestDecorator->makePayload(), $this->requestDecorator->makeHeaders());
        $this->refresh();
        return $result;
    }