public function getApiLogs($criteria = null, PropelPDO $con = null)
    {
        $partial = $this->collApiLogsPartial && !$this->isNew();
        if (null === $this->collApiLogs || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collApiLogs) {
                // return empty collection
                $this->initApiLogs();
            } else {
                $collApiLogs = ApiLogQuery::create(null, $criteria)
                    ->filterByRemoteApp($this)
                    ->find($con);
                if (null !== $criteria) {
                    if (false !== $this->collApiLogsPartial && count($collApiLogs)) {
                      $this->initApiLogs(false);

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

                      $this->collApiLogsPartial = true;
                    }

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

                    return $collApiLogs;
                }

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

                $this->collApiLogs = $collApiLogs;
                $this->collApiLogsPartial = false;
            }
        }

        return $this->collApiLogs;
    }