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;
    }