public function filterByRemoteHistoryContao($remoteHistoryContao, $comparison = null)
    {
        if ($remoteHistoryContao instanceof RemoteHistoryContao) {
            return $this
                ->addUsingAlias(RemoteAppPeer::ID, $remoteHistoryContao->getRemoteAppId(), $comparison);
        } elseif ($remoteHistoryContao instanceof PropelObjectCollection) {
            return $this
                ->useRemoteHistoryContaoQuery()
                ->filterByPrimaryKeys($remoteHistoryContao->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByRemoteHistoryContao() only accepts arguments of type RemoteHistoryContao or PropelCollection');
        }
    }