Declares an association between this object and a ChildCustomer object.

@param                  ChildCustomer $v
@return                 \CustomerGroup\Model\CustomerCustomerGroup The current object (for fluent API support)
@throws PropelException
325717
public function setCustomer(ChildCustomer $v = null)
    {
        if ($v === null) {
            $this->setCustomerId(NULL);
        } else {
            $this->setCustomerId($v->getId());
        }

        $this->aCustomer = $v;

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


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

        if ($this->brand_id !== $v) {
            $this->brand_id = $v;
            $this->modifiedColumns[DealerBrandTableMap::BRAND_ID] = true;
        }

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


        return $this;
    }
1366725
public function setLogo($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->logo !== $v) {
            $this->logo = $v;
            $this->modifiedColumns[] = CustomerPeer::LOGO;
        }


        return $this;
    }
735735
public function setIndexEngineDriverConfiguration(ChildIndexEngineDriverConfiguration $v = null)
    {
        if ($v === null) {
            $this->setIndexEngineDriverConfigurationId(null);
        } else {
            $this->setIndexEngineDriverConfigurationId($v->getId());
        }

        $this->aIndexEngineDriverConfiguration = $v;

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

        return $this;
    }
117682
public function setAttributeAv(ChildAttributeAv $v = null)
    {
        if ($v === null) {
            $this->setAttributeAvId(NULL);
        } else {
            $this->setAttributeAvId($v->getId());
        }

        $this->aAttributeAv = $v;

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


        return $this;
    }
1360361
public function setAncestor(ChildSkill $v = null)
    {
        if ($v === null) {
            $this->setAncestorId(NULL);
        } else {
            $this->setAncestorId($v->getId());
        }

        $this->aAncestor = $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->addLineageRelatedByAncestorId($this);
        }


        return $this;
    }
971052
public function setRole($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->role !== $v) {
            $this->role = $v;
            $this->modifiedColumns[] = RolePeer::ROLE;
        }


        return $this;
    }
74066
public function setAttributeType(ChildAttributeType $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aAttributeType = $v;

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


        return $this;
    }
995120
public function setStructureNode(ChildStructureNode $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aStructureNode = $v;

        // Add binding for other direction of this 1:1 relationship.
        if ($v !== null) {
            $v->setFunctionPhase($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;
    }
1321367
public function setId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

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

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


        return $this;
    }
1146843
public function child()
    {
        $child = self::i()->setParent($this);
        
        foreach ($this->globalMiddleware as $callback) {
            $child->add($callback);
        }
        
        foreach ($this->routeMiddleware as $method => $route) {
            $child->route($method, $route[0], $route[1]);
        }
        
        foreach ($this->errorMiddleware as $callback) {
            $child->error($callback);
        }
        
        return $child;
    }
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;
    }
1076865
public function setCustomer(\Gpupo\CommonSchema\ORM\Entity\Trading\Order\Customer\Customer $customer = null)
    {
        $this->customer = $customer;

        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;
    }
329209
public function setCustomerId($v)
    {
        if ($v !== null && is_numeric($v)) {
            $v = (int) $v;
        }

        if ($this->customer_id !== $v) {
            $this->customer_id = $v;
            $this->modifiedColumns[] = RemoteAppPeer::CUSTOMER_ID;
        }

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


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

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

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

        return $this;
    }