Entity/Profile.php
public function addBuyerHubRefAsBuyer(BuyerHubRef $buyerHubRef)
    {
        if (!count($this->buyerHubRefsAsBuyer))
        {
            $buyerHubRef->setIsDefault(true);
        }

        $this->buyerHubRefsAsBuyer[] = $buyerHubRef;
        $buyerHubRef->setBuyer($this);
    }
public function addBuyerHubRefAsBuyer(BuyerHubRef $buyerHubRef)
    {
        if (!count($this->buyerHubRefsAsBuyer))
        {
            $buyerHubRef->setIsDefault(true);
        }

        $this->buyerHubRefsAsBuyer[] = $buyerHubRef;
        $buyerHubRef->setBuyer($this);
    }
public function addBuyerHubRefAsBuyer ( BuyerHubRef $ buyerHubRef ) { if ( ! count ( $ this -> buyerHubRefsAsBuyer ) ) { $ buyerHubRef -> setIsDefault ( true ) ; } $ this -> buyerHubRefsAsBuyer [ ] = $ buyerHubRef ; $ buyerHubRef -> setBuyer ( $ this ) ; }
Add BuyerHubRef as Buyer

@author Tom Haskins-Vaughan <tom@harvestcloud.com>
@since  2012-04-26

@param BuyerHubRef $buyerHubRef
Add BuyerHubRef as Buyer