Model/Base/CustomerGroup.php
public function addCustomerCustomerGroup(ChildCustomerCustomerGroup $l)
    {
        if ($this->collCustomerCustomerGroups === null) {
            $this->initCustomerCustomerGroups();
            $this->collCustomerCustomerGroupsPartial = true;
        }

        if (!in_array($l, $this->collCustomerCustomerGroups->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddCustomerCustomerGroup($l);
        }

        return $this;
    }
public function addCustomerCustomerGroup(ChildCustomerCustomerGroup $l)
    {
        if ($this->collCustomerCustomerGroups === null) {
            $this->initCustomerCustomerGroups();
            $this->collCustomerCustomerGroupsPartial = true;
        }

        if (!in_array($l, $this->collCustomerCustomerGroups->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddCustomerCustomerGroup($l);
        }

        return $this;
    }
public function addCustomerCustomerGroup ( ChildCustomerCustomerGroup $ l ) { if ( $ this -> collCustomerCustomerGroups === null ) { $ this -> initCustomerCustomerGroups ( ) ; $ this -> collCustomerCustomerGroupsPartial = true ; } if ( ! in_array ( $ l , $ this -> collCustomerCustomerGroups -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddCustomerCustomerGroup ( $ l ) ; } return $ this ; }
Method called to associate a ChildCustomerCustomerGroup object to this object
through the ChildCustomerCustomerGroup foreign key attribute.

@param    ChildCustomerCustomerGroup $l ChildCustomerCustomerGroup
@return   \CustomerGroup\Model\CustomerGroup The current object (for fluent API support)
Method called to associate a ChildCustomerCustomerGroup object to this object through the ChildCustomerCustomerGroup foreign key attribute .