public function setDealerBrand(ChildDealerBrand $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aDealerBrand = $v;

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


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

        $this->aDealerBrand = $v;

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


        return $this;
    }
public function setDealerBrand ( ChildDealerBrand $ v = null ) { if ( $ v === null ) { $ this -> setId ( NULL ) ; } else { $ this -> setId ( $ v -> getId ( ) ) ; } $ this -> aDealerBrand = $ v ; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildDealerBrand object, it will not be re-added. if ( $ v !== null ) { $ v -> addDealerBrandVersion ( $ this ) ; } return $ this ; }
Declares an association between this object and a ChildDealerBrand object.

@param                  ChildDealerBrand $v
@return                 \Dealer\Model\DealerBrandVersion The current object (for fluent API support)
@throws PropelException
Declares an association between this object and a ChildDealerBrand object .