src/Slashworks/AppBundle/Model/om/BaseRemoteApp.php
public function addRemoteHistoryContao(RemoteHistoryContao $l)
    {
        if ($this->collRemoteHistoryContaos === null) {
            $this->initRemoteHistoryContaos();
            $this->collRemoteHistoryContaosPartial = true;
        }

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

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

        return $this;
    }
public function addRemoteHistoryContao(RemoteHistoryContao $l)
    {
        if ($this->collRemoteHistoryContaos === null) {
            $this->initRemoteHistoryContaos();
            $this->collRemoteHistoryContaosPartial = true;
        }

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

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

        return $this;
    }
public function addRemoteHistoryContao ( RemoteHistoryContao $ l ) { if ( $ this -> collRemoteHistoryContaos === null ) { $ this -> initRemoteHistoryContaos ( ) ; $ this -> collRemoteHistoryContaosPartial = true ; } if ( ! in_array ( $ l , $ this -> collRemoteHistoryContaos -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddRemoteHistoryContao ( $ l ) ; if ( $ this -> remoteHistoryContaosScheduledForDeletion and $ this -> remoteHistoryContaosScheduledForDeletion -> contains ( $ l ) ) { $ this -> remoteHistoryContaosScheduledForDeletion -> remove ( $ this -> remoteHistoryContaosScheduledForDeletion -> search ( $ l ) ) ; } } return $ this ; }
Method called to associate a RemoteHistoryContao object to this object
through the RemoteHistoryContao foreign key attribute.

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