/**
  * Filter the query by a related \ECP\EveApi object
  *
  * @param \ECP\EveApi|ObjectCollection $eveApi the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByEveApi($eveApi, $comparison = null)
 {
     if ($eveApi instanceof \ECP\EveApi) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $eveApi->getUserid(), $comparison);
     } elseif ($eveApi instanceof ObjectCollection) {
         return $this->useEveApiQuery()->filterByPrimaryKeys($eveApi->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByEveApi() only accepts arguments of type \\ECP\\EveApi or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildEveApi $eveApi Object to remove from the list of results
  *
  * @return $this|ChildEveApiQuery The current query, for fluid interface
  */
 public function prune($eveApi = null)
 {
     if ($eveApi) {
         $this->addUsingAlias(EveApiTableMap::COL_ID, $eveApi->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aEveApi) {
         $this->aEveApi->removeEveCharacter($this);
     }
     $this->id = null;
     $this->eveapiid = null;
     $this->charname = null;
     $this->charid = null;
     $this->corpname = null;
     $this->corpid = null;
     $this->allyname = null;
     $this->allyid = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Filter the query by a related \ECP\EveApi object
  *
  * @param \ECP\EveApi|ObjectCollection $eveApi The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildEveCharacterQuery The current query, for fluid interface
  */
 public function filterByEveApi($eveApi, $comparison = null)
 {
     if ($eveApi instanceof \ECP\EveApi) {
         return $this->addUsingAlias(EveCharacterTableMap::COL_EVEAPIID, $eveApi->getId(), $comparison);
     } elseif ($eveApi instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(EveCharacterTableMap::COL_EVEAPIID, $eveApi->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByEveApi() only accepts arguments of type \\ECP\\EveApi or Collection');
     }
 }
 /**
  * @param ChildEveApi $eveApi The ChildEveApi object to add.
  */
 protected function doAddEveApi(ChildEveApi $eveApi)
 {
     $this->collEveApis[] = $eveApi;
     $eveApi->setUser($this);
 }