Declares an association between this object and a ChildDealer object.

@param                  ChildDealer $v
@return                 \Dealer\Model\DealerBrand The current object (for fluent API support)
@throws PropelException
774459
public function setDealer(ChildDealer $v = null)
    {
        if ($v === null) {
            $this->setDealerId(NULL);
        } else {
            $this->setDealerId($v->getId());
        }

        $this->aDealer = $v;

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


        return $this;
    }
688525
public function setDealerAdminVersions($v)
    {
        if ($this->dealer_admin_versions_unserialized !== $v) {
            $this->dealer_admin_versions_unserialized = $v;
            $this->dealer_admin_versions = '| ' . implode(' | ', $v) . ' |';
            $this->modifiedColumns[DealerVersionTableMap::DEALER_ADMIN_VERSIONS] = true;
        }


        return $this;
    }
1131146
public function setEndPosition(ChildPosition $v = null)
    {
        if ($v === null) {
            $this->setEndPositionId(NULL);
        } else {
            $this->setEndPositionId($v->getId());
        }

        $this->aEndPosition = $v;

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


        return $this;
    }
1020570
public function setDealerProductIds($v)
    {
        if ($this->dealer_product_ids_unserialized !== $v) {
            $this->dealer_product_ids_unserialized = $v;
            $this->dealer_product_ids = '| ' . implode(' | ', $v) . ' |';
            $this->modifiedColumns[DealerVersionTableMap::DEALER_PRODUCT_IDS] = true;
        }


        return $this;
    }
904676
public function setSkillRelatedByDependencyId(ChildSkill $v = null)
    {
        if ($v === null) {
            $this->setDependencyId(NULL);
        } else {
            $this->setDependencyId($v->getId());
        }

        $this->aSkillRelatedByDependencyId = $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->addChild($this);
        }


        return $this;
    }
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;
    }
337372
public function setMap(ChildMap $v = null)
    {
        if ($v === null) {
            $this->setTrackuid(NULL);
        } else {
            $this->setTrackuid($v->getMapuid());
        }

        $this->aMap = $v;

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


        return $this;
    }
755130
public function addDealerShedules(ChildDealerShedules $l)
    {
        if ($this->collDealerSheduless === null) {
            $this->initDealerSheduless();
            $this->collDealerShedulessPartial = true;
        }

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

        return $this;
    }
188166
public function setDealerBrandVersions($v)
    {
        if ($this->dealer_brand_versions_unserialized !== $v) {
            $this->dealer_brand_versions_unserialized = $v;
            $this->dealer_brand_versions = '| ' . implode(' | ', $v) . ' |';
            $this->modifiedColumns[DealerVersionTableMap::DEALER_BRAND_VERSIONS] = true;
        }


        return $this;
    }
853421
public function setCountry(ChildCountry $v = null)
    {
        if ($v === null) {
            $this->setCountryId(NULL);
        } else {
            $this->setCountryId($v->getId());
        }

        $this->aCountry = $v;

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


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

        if ($this->id !== $v) {
            $this->id = $v;
            $this->modifiedColumns[DealerFolderVersionTableMap::ID] = true;
        }

        if ($this->aDealerFolder !== null && $this->aDealerFolder->getId() !== $v) {
            $this->aDealerFolder = null;
        }


        return $this;
    }
496957
public function setContent(ChildContent $v = null)
    {
        if ($v === null) {
            $this->setContentId(NULL);
        } else {
            $this->setContentId($v->getId());
        }

        $this->aContent = $v;

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


        return $this;
    }
607866
public function setDealerFolder(ChildDealerFolder $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aDealerFolder = $v;

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


        return $this;
    }
778993
public function setPerson(ChildPerson $v = null)
    {
        if ($v === null) {
            $this->setPersonId(NULL);
        } else {
            $this->setPersonId($v->getId());
        }

        $this->aPerson = $v;

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


        return $this;
    }
1069825
public function setProduct(ChildProduct $v = null)
    {
        if ($v === null) {
            $this->setProductId(NULL);
        } else {
            $this->setProductId($v->getId());
        }

        $this->aProduct = $v;

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


        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;
    }
304641
public function setSource(ChildSource $v = null)
    {
        if ($v === null) {
            $this->setSourceId(NULL);
        } else {
            $this->setSourceId($v->getId());
        }

        $this->aSource = $v;

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


        return $this;
    }