src/Slashworks/AppBundle/Model/om/BaseCustomer.php
public function addRemoteApp(RemoteApp $l)
    {
        if ($this->collRemoteApps === null) {
            $this->initRemoteApps();
            $this->collRemoteAppsPartial = true;
        }

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

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

        return $this;
    }
public function addRemoteApp(RemoteApp $l)
    {
        if ($this->collRemoteApps === null) {
            $this->initRemoteApps();
            $this->collRemoteAppsPartial = true;
        }

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

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

        return $this;
    }
public function addRemoteApp ( RemoteApp $ l ) { if ( $ this -> collRemoteApps === null ) { $ this -> initRemoteApps ( ) ; $ this -> collRemoteAppsPartial = true ; } if ( ! in_array ( $ l , $ this -> collRemoteApps -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddRemoteApp ( $ l ) ; if ( $ this -> remoteAppsScheduledForDeletion and $ this -> remoteAppsScheduledForDeletion -> contains ( $ l ) ) { $ this -> remoteAppsScheduledForDeletion -> remove ( $ this -> remoteAppsScheduledForDeletion -> search ( $ l ) ) ; } } return $ this ; }
Method called to associate a RemoteApp object to this object
through the RemoteApp foreign key attribute.

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