public function getRemoteApps($criteria = null, PropelPDO $con = null)
    {
        $partial = $this->collRemoteAppsPartial && !$this->isNew();
        if (null === $this->collRemoteApps || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collRemoteApps) {
                // return empty collection
                $this->initRemoteApps();
            } else {
                $collRemoteApps = RemoteAppQuery::create(null, $criteria)
                    ->filterByCustomer($this)
                    ->find($con);
                if (null !== $criteria) {
                    if (false !== $this->collRemoteAppsPartial && count($collRemoteApps)) {
                      $this->initRemoteApps(false);

                      foreach ($collRemoteApps as $obj) {
                        if (false == $this->collRemoteApps->contains($obj)) {
                          $this->collRemoteApps->append($obj);
                        }
                      }

                      $this->collRemoteAppsPartial = true;
                    }

                    $collRemoteApps->getInternalIterator()->rewind();

                    return $collRemoteApps;
                }

                if ($partial && $this->collRemoteApps) {
                    foreach ($this->collRemoteApps as $obj) {
                        if ($obj->isNew()) {
                            $collRemoteApps[] = $obj;
                        }
                    }
                }

                $this->collRemoteApps = $collRemoteApps;
                $this->collRemoteAppsPartial = false;
            }
        }

        return $this->collRemoteApps;
    }