src/Slashworks/AppBundle/Model/om/BaseCustomer.php
public function addUserCustomerRelation(UserCustomerRelation $l)
    {
        if ($this->collUserCustomerRelations === null) {
            $this->initUserCustomerRelations();
            $this->collUserCustomerRelationsPartial = true;
        }

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

            if ($this->userCustomerRelationsScheduledForDeletion and $this->userCustomerRelationsScheduledForDeletion->contains($l)) {
                $this->userCustomerRelationsScheduledForDeletion->remove($this->userCustomerRelationsScheduledForDeletion->search($l));
            }
        }

        return $this;
    }
public function addUserCustomerRelation(UserCustomerRelation $l)
    {
        if ($this->collUserCustomerRelations === null) {
            $this->initUserCustomerRelations();
            $this->collUserCustomerRelationsPartial = true;
        }

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

            if ($this->userCustomerRelationsScheduledForDeletion and $this->userCustomerRelationsScheduledForDeletion->contains($l)) {
                $this->userCustomerRelationsScheduledForDeletion->remove($this->userCustomerRelationsScheduledForDeletion->search($l));
            }
        }

        return $this;
    }
public function addUserCustomerRelation ( UserCustomerRelation $ l ) { if ( $ this -> collUserCustomerRelations === null ) { $ this -> initUserCustomerRelations ( ) ; $ this -> collUserCustomerRelationsPartial = true ; } if ( ! in_array ( $ l , $ this -> collUserCustomerRelations -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddUserCustomerRelation ( $ l ) ; if ( $ this -> userCustomerRelationsScheduledForDeletion and $ this -> userCustomerRelationsScheduledForDeletion -> contains ( $ l ) ) { $ this -> userCustomerRelationsScheduledForDeletion -> remove ( $ this -> userCustomerRelationsScheduledForDeletion -> search ( $ l ) ) ; } } return $ this ; }
Method called to associate a UserCustomerRelation object to this object
through the UserCustomerRelation foreign key attribute.

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