Declares an association between this object and a ChildDealerContact object.

@param                  ChildDealerContact $v
@return                 \Dealer\Model\DealerContactVersion The current object (for fluent API support)
@throws PropelException
496440
public function setDealerContact(ChildDealerContact $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aDealerContact = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildDealerContact object, it will not be re-added.
        if ($v !== null) {
            $v->addDealerContactVersion($this);
        }


        return $this;
    }
1359714
public function addDealerContact(ChildDealerContact $l)
    {
        if ($this->collDealerContacts === null) {
            $this->initDealerContacts();
            $this->collDealerContactsPartial = true;
        }

        if (!in_array($l, $this->collDealerContacts->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddDealerContact($l);
        }

        return $this;
    }
541372
public function setPermission(ChildPermission $v = null)
    {
        if ($v === null) {
            $this->setPermissionId(NULL);
        } else {
            $this->setPermissionId($v->getId());
        }

        $this->aPermission = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildPermission object, it will not be re-added.
        if ($v !== null) {
            $v->addRolePermission($this);
        }


        return $this;
    }
400815
public function setBrand(ChildBrand $v = null)
    {
        if ($v === null) {
            $this->setBrandId(NULL);
        } else {
            $this->setBrandId($v->getId());
        }

        $this->aBrand = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildBrand object, it will not be re-added.
        if ($v !== null) {
            $v->addDealerBrand($this);
        }


        return $this;
    }
723515
public function addVersion($con = null)
    {
        $this->enforceVersion = false;

        $version = new ChildDealerProductVersion();
        $version->setId($this->getId());
        $version->setDealerId($this->getDealerId());
        $version->setProductId($this->getProductId());
        $version->setCreatedAt($this->getCreatedAt());
        $version->setUpdatedAt($this->getUpdatedAt());
        $version->setVersion($this->getVersion());
        $version->setVersionCreatedAt($this->getVersionCreatedAt());
        $version->setVersionCreatedBy($this->getVersionCreatedBy());
        $version->setDealerProduct($this);
        if (($related = $this->getDealer($con)) && $related->getVersion()) {
            $version->setDealerIdVersion($related->getVersion());
        }
        if (($related = $this->getProduct($con)) && $related->getVersion()) {
            $version->setProductIdVersion($related->getVersion());
        }
        $version->save($con);

        return $version;
    }
1324633
public function setSport(ChildSport $v = null)
    {
        if ($v === null) {
            $this->setSportId(NULL);
        } else {
            $this->setSportId($v->getId());
        }

        $this->aSport = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildSport object, it will not be re-added.
        if ($v !== null) {
            $v->addPosition($this);
        }


        return $this;
    }
394544
public function setDealerContent(ChildDealerContent $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aDealerContent = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildDealerContent object, it will not be re-added.
        if ($v !== null) {
            $v->addDealerContentVersion($this);
        }


        return $this;
    }
53161
public function setVersion($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->version !== $v) {
            $this->version = $v;
            $this->modifiedColumns[DealerContactInfoTableMap::VERSION] = true;
        }


        return $this;
    }
540497
public function setSkillRelatedByPartId(ChildSkill $v = null)
    {
        if ($v === null) {
            $this->setPartId(NULL);
        } else {
            $this->setPartId($v->getId());
        }

        $this->aSkillRelatedByPartId = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildSkill object, it will not be re-added.
        if ($v !== null) {
            $v->addPart($this);
        }


        return $this;
    }
1282173
public function getDealerContent(ConnectionInterface $con = null)
    {
        if ($this->aDealerContent === null && ($this->id !== null)) {
            $this->aDealerContent = ChildDealerContentQuery::create()->findPk($this->id, $con);
            /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aDealerContent->addDealerContentVersions($this);
             */
        }

        return $this->aDealerContent;
    }
119935
public function setVariationOf(ChildSkill $v = null)
    {
        if ($v === null) {
            $this->setVariationOfId(NULL);
        } else {
            $this->setVariationOfId($v->getId());
        }

        $this->aVariationOf = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildSkill object, it will not be re-added.
        if ($v !== null) {
            $v->addVariation($this);
        }


        return $this;
    }
284159
public function setSkillRelatedBySkillId(ChildSkill $v = null)
    {
        if ($v === null) {
            $this->setSkillId(NULL);
        } else {
            $this->setSkillId($v->getId());
        }

        $this->aSkillRelatedBySkillId = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildSkill object, it will not be re-added.
        if ($v !== null) {
            $v->addKstrukturRelatedBySkillId($this);
        }


        return $this;
    }
1264117
public function setProductIdVersion($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->product_id_version !== $v) {
            $this->product_id_version = $v;
            $this->modifiedColumns[DealerProductVersionTableMap::PRODUCT_ID_VERSION] = true;
        }


        return $this;
    }
525995
public function setKstrukturRoot(ChildKstruktur $v = null)
    {
        if ($v === null) {
            $this->setKstrukturId(NULL);
        } else {
            $this->setKstrukturId($v->getId());
        }

        $this->aKstrukturRoot = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildKstruktur object, it will not be re-added.
        if ($v !== null) {
            $v->addRootSkill($this);
        }


        return $this;
    }
406111
public function setPermissionRelatedByParentId(ChildPermission $v = null)
    {
        if ($v === null) {
            $this->setParentId(NULL);
        } else {
            $this->setParentId($v->getId());
        }

        $this->aPermissionRelatedByParentId = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildPermission object, it will not be re-added.
        if ($v !== null) {
            $v->addPermissionRelatedById($this);
        }


        return $this;
    }
200078
public function setContactType($v)
    {
        if ($v !== null) {
            $valueSet = DealerContactInfoTableMap::getValueSet(DealerContactInfoTableMap::CONTACT_TYPE);
            if (!in_array($v, $valueSet)) {
                throw new PropelException(sprintf('Value "%s" is not accepted in this enumerated column', $v));
            }
            $v = array_search($v, $valueSet);
        }

        if ($this->contact_type !== $v) {
            $this->contact_type = $v;
            $this->modifiedColumns[DealerContactInfoTableMap::CONTACT_TYPE] = true;
        }


        return $this;
    }
457703
public function setSkillRelatedByParentId(ChildSkill $v = null)
    {
        if ($v === null) {
            $this->setParentId(NULL);
        } else {
            $this->setParentId($v->getId());
        }

        $this->aSkillRelatedByParentId = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildSkill object, it will not be re-added.
        if ($v !== null) {
            $v->addParent($this);
        }


        return $this;
    }