Declares an association between this object and a ChildDealerShedules object.

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

        $this->aDealerShedules = $v;

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


        return $this;
    }
512549
public function setTeam(ChildTeam $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aTeam = $v;

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


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

        if ($this->parent_id !== $v) {
            $this->parent_id = $v;
            $this->modifiedColumns[SkillDependencyTableMap::COL_PARENT_ID] = true;
        }

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

        return $this;
    }
88520
public function setDealerContactInfoVersions($v)
    {
        if ($this->dealer_contact_info_versions_unserialized !== $v) {
            $this->dealer_contact_info_versions_unserialized = $v;
            $this->dealer_contact_info_versions = '| ' . implode(' | ', $v) . ' |';
            $this->modifiedColumns[DealerContactVersionTableMap::DEALER_CONTACT_INFO_VERSIONS] = 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;
    }
1355117
public function setSkill(ChildSkill $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aSkill = $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->addSkillVersion($this);
        }


        return $this;
    }
204046
public function setMultipleOf(ChildSkill $v = null)
    {
        if ($v === null) {
            $this->setMultipleOfId(NULL);
        } else {
            $this->setMultipleOfId($v->getId());
        }

        $this->aMultipleOf = $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->addMultiple($this);
        }


        return $this;
    }
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;
    }
858899
public function setDealerBrandIds($v)
    {
        if ($this->dealer_brand_ids_unserialized !== $v) {
            $this->dealer_brand_ids_unserialized = $v;
            $this->dealer_brand_ids = '| ' . implode(' | ', $v) . ' |';
            $this->modifiedColumns[DealerVersionTableMap::DEALER_BRAND_IDS] = true;
        }


        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;
    }
1312202
public function addDealerBrand(ChildDealerBrand $l)
    {
        if ($this->collDealerBrands === null) {
            $this->initDealerBrands();
            $this->collDealerBrandsPartial = true;
        }

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

        return $this;
    }
569671
public function setStartPosition(ChildPosition $v = null)
    {
        if ($v === null) {
            $this->setStartPositionId(NULL);
        } else {
            $this->setStartPositionId($v->getId());
        }

        $this->aStartPosition = $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->addSkillRelatedByStartPositionId($this);
        }


        return $this;
    }
1325122
public function getDealerShedules(ConnectionInterface $con = null)
    {
        if ($this->aDealerShedules === null && ($this->id !== null)) {
            $this->aDealerShedules = ChildDealerShedulesQuery::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->aDealerShedules->addDealerShedulesVersions($this);
             */
        }

        return $this->aDealerShedules;
    }
1195619
public function setDealerAdmin(ChildDealerAdmin $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aDealerAdmin = $v;

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


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

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

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


        return $this;
    }
165326
public function setDealerProductVersions($v)
    {
        if ($this->dealer_product_versions_unserialized !== $v) {
            $this->dealer_product_versions_unserialized = $v;
            $this->dealer_product_versions = '| ' . implode(' | ', $v) . ' |';
            $this->modifiedColumns[DealerVersionTableMap::DEALER_PRODUCT_VERSIONS] = true;
        }


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

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

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


        return $this;
    }