src/Slashworks/AppBundle/Model/om/BaseUserCustomerRelation.php
public function setCustomer(Customer $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 Customer object, it will not be re-added.
        if ($v !== null) {
            $v->addUserCustomerRelation($this);
        }


        return $this;
    }
public function setCustomer(Customer $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 Customer object, it will not be re-added.
        if ($v !== null) {
            $v->addUserCustomerRelation($this);
        }


        return $this;
    }
public function setCustomer ( Customer $ 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 Customer object, it will not be re-added. if ( $ v !== null ) { $ v -> addUserCustomerRelation ( $ this ) ; } return $ this ; }
Declares an association between this object and a Customer object.

@param                  Customer $v
@return UserCustomerRelation The current object (for fluent API support)
@throws PropelException
Declares an association between this object and a Customer object .