Set the value of Id / id
@param $value int
@return Log
505566
public function setId(int $value) : Log
    {

        if ($this->data['id'] !== $value) {
            $this->data['id'] = $value;
            $this->setModified('id');
        }

        return $this;
    }
911654
public function setValue($value, $data = null)
    {
        $id = $this->getIsNullId();

        if (is_array($data) && array_key_exists($id, $data) && $data[$id]) {
            $value = null;
        }

        $this->valueField->setValue($value);

        parent::setValue($value);

        return $this;
    }
523640
public function setActive(int $value) : User
    {

        if ($this->data['active'] !== $value) {
            $this->data['active'] = $value;
            $this->setModified('active');
        }

        return $this;
    }
942210
function setParameter($name, $value)
    {
        $ids = explode(',', $value);

        //
        if (count($ids) < 2) {
            $ids = $id;
        }

        $this->allowedIds = $ids;

        return $this;
    }
674105
public function setUserId(int $value) : Permission
    {

        // As this column is a foreign key, empty values should be considered null.
        if (empty($value)) {
            $value = null;
        }


        if ($this->data['user_id'] !== $value) {
            $this->data['user_id'] = $value;
            $this->setModified('user_id');
        }

        return $this;
    }
71612
public function setId(int $value) : ScheduledJob
    {

        if ($this->data['id'] !== $value) {
            $this->data['id'] = $value;
            $this->setModified('id');
        }

        return $this;
    }
1360166
public function set($value, $data)
    {
        $id = is_object($value) ? spl_object_hash($value) : $value;
        $this->_keys[$id] = $value;
        $this->_data[$id] = $data;
        return $this;
    }
990697
public function setSentCountActual($value = null)
    {
        if ($value === null || $value === '' || $value === false) {
            $this->sentCountActual = null;
        } else {
            $this->sentCountActual = (int) $value;
        }

        return $this;
    }
514663
public function setValue($value)
	{
		$value = (int) $value;
		$value = parent::setValue($value);
		return $value;
	}
251067
public function set($name, $value)
    {
        //If it's an object, save its ID as the parameter
        if(is_object($value) && method_exists($value, 'getId'))
        {
            $this->parameters[$name] = $value->getId();
        }

        //Just save the parameter
        else
        {
            $this->parameters[$name] = $value;
        }

        return $this;
    }
966568
public function setType(?int $value) : Log
    {

        if ($this->data['type'] !== $value) {
            $this->data['type'] = $value;
            $this->setModified('type');
        }

        return $this;
    }
462162
public function setBirthdateY($value)
    {
        if ($value === null) {
            $this->parameters['birthdateY'] = null;
        } else {
            $datetime = new \DateTime('now');
            $max = (int)$datetime->format('Y');
            validators\Number::validate($value, 1, $max, 'Invalid birthdateY');
            $this->parameters['birthdateY'] = min($max, max(1, (int)$value));
        }
        return $this;
    }
207951
public function set_tourid($value) {
        $this->tourid = $value;
        $this->tour = null;
        $this->dirty = true;

        return $this;
    }
1146513
public function setStatus(int $value) : Job
    {

        if ($this->data['status'] !== $value) {
            $this->data['status'] = $value;
            $this->setModified('status');
        }

        return $this;
    }
30616
public function setId(int $value) : SearchIndex
    {

        if ($this->data['id'] !== $value) {
            $this->data['id'] = $value;
            $this->setModified('id');
        }

        return $this;
    }
711275
public function setQueueId(?int $value) : Job
    {

        if ($this->data['queue_id'] !== $value) {
            $this->data['queue_id'] = $value;
            $this->setModified('queue_id');
        }

        return $this;
    }
614282
public function delete($value)
    {
        $id = is_object($value) ? spl_object_hash($value) : $value;
        unset($this->_keys[$id]);
        unset($this->_data[$id]);
        return $this;
    }