Model/Base/CustomerGroup.php
public function addCustomer(ChildCustomer $customer)
    {
        if ($this->collCustomers === null) {
            $this->initCustomers();
        }

        if (!$this->collCustomers->contains($customer)) { // only add it if the **same** object is not already associated
            $this->doAddCustomer($customer);
            $this->collCustomers[] = $customer;
        }

        return $this;
    }
public function addCustomer(ChildCustomer $customer)
    {
        if ($this->collCustomers === null) {
            $this->initCustomers();
        }

        if (!$this->collCustomers->contains($customer)) { // only add it if the **same** object is not already associated
            $this->doAddCustomer($customer);
            $this->collCustomers[] = $customer;
        }

        return $this;
    }
public function addCustomer ( ChildCustomer $ customer ) { if ( $ this -> collCustomers === null ) { $ this -> initCustomers ( ) ; } if ( ! $ this -> collCustomers -> contains ( $ customer ) ) { // only add it if the **same** object is not already associated $ this -> doAddCustomer ( $ customer ) ; $ this -> collCustomers [ ] = $ customer ; } return $ this ; }
Associate a ChildCustomer object to this object
through the customer_customer_group cross reference table.

@param  ChildCustomer $customer The ChildCustomerCustomerGroup object to relate
@return ChildCustomerGroup The current object (for fluent API support)
Associate a ChildCustomer object to this object through the customer_customer_group cross reference table .