Adds a value to the [dealer_admin_ids] array column value.
@param      mixed $value

@return   \Dealer\Model\DealerVersion The current object (for fluent API support)
558596
public function addDealerAdminId($value)
    {
        $currentArray = $this->getDealerAdminIds();
        $currentArray []= $value;
        $this->setDealerAdminIds($currentArray);

        return $this;
    }
504973
public function addDealerProductVersion($value)
    {
        $currentArray = $this->getDealerProductVersions();
        $currentArray []= $value;
        $this->setDealerProductVersions($currentArray);

        return $this;
    }
1145200
public function addKkTrixionarySkillId($value)
    {
        $currentArray = $this->getKkTrixionarySkillIds();
        $currentArray []= $value;
        $this->setKkTrixionarySkillIds($currentArray);

        return $this;
    }
1353347
protected function createObjectFromArray(array &$value)
    {
        if (array_key_exists('$ref', $value) && is_string($value['$ref'])) {
            return $this->createReferenceFromArray($value);
        }

        $instance = new Value\ObjectValue;
        $this->register($value, $instance);

        foreach ($value as $key => &$subValue) {
            $instance->set($key, $this->createValue($subValue));
        }

        return $instance;
    }
500377
public function addConstructorValue($value)
        {
            $endPoint =& $this->_getEndPoint();

            if (!isset($endPoint['args'])) {
                $endPoint['args'] = array();
            }

            $endPoint['args'][] = array(
                'type' => 'value',
                'item' => $value
            );

            return $this;
        }
1025054
public function setDealerAdminIds($v)
    {
        if ($this->dealer_admin_ids_unserialized !== $v) {
            $this->dealer_admin_ids_unserialized = $v;
            $this->dealer_admin_ids = '| ' . implode(' | ', $v) . ' |';
            $this->modifiedColumns[DealerVersionTableMap::DEALER_ADMIN_IDS] = true;
        }


        return $this;
    }
926289
public function addDealerFolderId($value)
    {
        $currentArray = $this->getDealerFolderIds();
        $currentArray []= $value;
        $this->setDealerFolderIds($currentArray);

        return $this;
    }
30805
public function restoreModel($value)
    {
        return $this->getQueryForModelRestoration(
            (new $value->class)->setConnection($value->connection), $value->id
        )->useWritePdo()->firstOrFail()->load($value->relations ?? []);
    }
635000
public function removeDealerProductId($value)
    {
        $targetArray = array();
        foreach ($this->getDealerProductIds() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setDealerProductIds($targetArray);

        return $this;
    }
1016097
protected function buildValue($value): Model
    {
        if ($value instanceof Model || is_null($value)) {
            return $value;
        }

        $model = Attribute::getTypeModel($this->attribute->getAttribute('type'));
        $instance = new $model();

        $instance->setAttribute('entity_id', $this->entity->getKey());
        $instance->setAttribute('entity_type', $this->entity->getMorphClass());
        $instance->setAttribute($this->attribute->getForeignKey(), $this->attribute->getKey());
        $instance->setAttribute('content', $value);

        return $instance;
    }
358557
public function removeDealerAdminVersion($value)
    {
        $targetArray = array();
        foreach ($this->getDealerAdminVersions() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setDealerAdminVersions($targetArray);

        return $this;
    }
381893
public function addDealerContactInfoVersion($value)
    {
        $currentArray = $this->getDealerContactInfoVersions();
        $currentArray []= $value;
        $this->setDealerContactInfoVersions($currentArray);

        return $this;
    }
480063
public function setBuild($value)
    {
        // Is this an instance of Build?
        if ($value instanceof \PHPCI\Model\Build) {
            return $this->setBuildObject($value);
        }

        // Is this an array representing a Build item?
        if (is_array($value) && !empty($value['id'])) {
            return $this->setBuildId($value['id']);
        }

        // Is this a scalar value representing the ID of this foreign key?
        return $this->setBuildId($value);
    }
474857
public function addDealerContactId($value)
    {
        $currentArray = $this->getDealerContactIds();
        $currentArray []= $value;
        $this->setDealerContactIds($currentArray);

        return $this;
    }
752309
public function addClass($value)
    {
        if (!isset($this->attributeList['class']) || is_null($this->attributeList['class'])) {
            $this->attributeList['class'] = array();
        }
        $this->attributeList['class'][] = $value;
        return $this;
    }
895854
public function setLinkedLeadsId($value)
    {
        if (!is_array($value)) {
            $value = [$value];
        }

        $this->values['linked_leads_id'] = $value;

        return $this;
    }
1198924
public function addYears($value) {
        
        $yearToSet = (int) $this->year + $value;
        
        return $this->setDate($yearToSet, $this->month, $this->day);
    }